5

I have controller

app/controllers/posts.rb

How can I use admin layout from

admin/views/layouts/application.haml

?

Ivan Linko
  • 966
  • 7
  • 15
  • You better specify the framework you're working with in the question too. I haven't read the tags first and assumed need help with Rails. – KL-7 Jun 26 '12 at 18:20
  • Added "Padrino" to title, thanks – Ivan Linko Jun 26 '12 at 18:32
  • 1
    If Padrino does not use `admin/views/layouts/application.haml` by default, I would try to add a parameter. For example `haml :index, :layout => :admin` (As done in Sinatra) – Dru Jul 03 '12 at 12:39
  • I doubt that `haml :index, :layout => :admin` works, because `/admin` in Padrino is an embedded app on its own. – Lamnk Jul 12 '13 at 07:08

0 Answers0