Reputation: 689
I have rails app with active_admin
. Active_admin
generator was generate active_admin.css
. And on my pages(e.g /projects
) I get mixed css files(my style.css
and active_admin.css
).
How I can separate load stylesheets files?
Upvotes: 0
Views: 128
Reputation: 12417
Using Javascript you can check whatever you want and include css you want
http://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml
or you can try like this in ruby..
the example is in php
http://snipplr.com/view/63586/wpconditional-css-files-loading/
Upvotes: 1