How to give ActiveAdmin its own application layout? — Rails newbie

若如初见. 提交于 2019-12-24 01:01:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!