我如何定制活动管理布局? [英] How can I customize the active admin layout?
本文介绍了我如何定制活动管理布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
当定义一个视图的时候在Rails应用程序中的宝石AND,在Rails应用程序中定义的那个。这是一个逻辑优先级。
因此,如果您需要覆盖全部或部分活动管理视图,则必须将这些视图复制到您的应用中,并根据需要进行更改。
I need to customize the active admin layout, but how can I do it?
解决方案
When a view is defined in a gem AND in the rails app, the one defined in the Rails app is served. It's a logic priority.
So if you need to override all or some active admin views, you'll have to copy these in your app and change them as you desire.
这篇关于我如何定制活动管理布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文