Rails Active Admin css conflicting with Twitter Bootstrap css

前端 未结 3 2155
北恋
北恋 2020-12-02 10:40

I\'m somewhat new to the Rails asset pipeline so I might be doing something wrong. I\'m trying to use Active Admin for my backend and twitter bootstrap css for my front end

3条回答
  •  长情又很酷
    2020-12-02 11:01

    I had the same problem, and was able to fix it by moving

    app/assets/stylesheets/active_admin.css.scss
    

    to

    vendor/assets/stylesheets/active_admin.css.scss
    

    The active admin assets should be in vendor/ as mentioned in the rails guide:

    "Vendor/assets is for assets that are owned by outside entities, such as code for JavaScript plugins and CSS frameworks."

提交回复
热议问题