Rails 3.1 + ActiveAdmin GEM css/样式表冲突?
我一定错过了一些非常简单的东西,但我找不到其他有问题的人。 基本上,Rails 3.1 将所有 .css 文件合并到 application.css 中。在我安装ActiveAdmin后,ActiveAdmin的CSS也合并到application.css中,导致冲突并覆盖我的样式表。
我在这里缺少什么?
I must be missing something really simple, but I could not find anyone else with the problem.
Basically, Rails 3.1 merges all the .css files into application.css. After I installed ActiveAdmin, ActiveAdmin's CSS are also merged into application.css, causes conflict and overrides my stylesheet.
What am I missing here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我删除了 *= require_tree 。来自 application.css 并分别添加彼此的 css。不确定这是否是最好的方法,但它确实有效。
I removed *= require_tree . from application.css and added each other css individually. Not sure whether this is the best way, but it works.
目录中添加生成的 active_admin css 和 js 解决了这个问题
I solved it by adding the generated active_admin css and js in the vendor directory..