mustache_rails3 icon indicating copy to clipboard operation
mustache_rails3 copied to clipboard

How do you get the layout to show

Open 00hello opened this issue 13 years ago • 0 comments

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.

00hello avatar Nov 26 '11 22:11 00hello