mustache_rails3
mustache_rails3 copied to clipboard
How do you get the layout to show
I can't seem to get the layouts to show up for my pages.
I've done this
#app/views/layouts/main.rb
class Layouts::Main < Mustache::Rails
def default_title
'A Cylon fleet has jumped into orbit!'
end
end
and this
#app/templates/layouts/main.html.mustache
<h1>{{default_title}}</h1>
{{{yield}}}
But it doesn't seem to show.
Do I need to subclass my views from the "main.rb" layout? Does it need to have the same name as the view like regular RoR layouts? I've done both but it doesn't work for me.
Please, point me in the right direction. I'm lost.