如何给ActiveAdmin自己的应用程序布局? -Rails新手 [英] How to give ActiveAdmin its own application layout? -- Rails newbie
本文介绍了如何给ActiveAdmin自己的应用程序布局? -Rails新手的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这可能是一个简单的死问题。现在,它使用默认的应用程序布局文件。我该如何为AdminAdmin创建一个,以便使其与主站点上使用的分开?
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?
推荐答案
阅读布局和渲染指南,其中有一段关于:layout
选项。
Read layouts and rendering guide, there is paragraph about :layout
option.
您可以指定布局,或将其设置为false,以完全不进行布局。
You can specify layout, or set it to false, to render without layout at all.
render :layout => 'special_layout'
render :layout => false
这篇关于如何给ActiveAdmin自己的应用程序布局? -Rails新手的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文