问题
It's probably a dead simple question. Right now it uses the default application layout file. How can I create one just for AdminAdmin in order keep it separate from the one used on the main site?
回答1:
Read layouts and rendering guide, there is paragraph about :layout
option.
You can specify layout, or set it to false, to render without layout at all.
render :layout => 'special_layout'
render :layout => false
回答2:
If my memory does not fail me again !! ;-)
this rails cast talk about this. But i'm not sure!
Anyway, if you never watched it. It's a good watch.
来源:https://stackoverflow.com/questions/8084183/how-to-give-activeadmin-its-own-application-layout-rails-newbie