I am using a specific bootstrap 4 template for my application. This template (cover.css) is specific to the homepage as all the others pages will use a different style.
How can I use cover.css
only for the index action?
In my application.css I added @import "cover"
can I have this only applied to the index action?
I tried creating two layouts instead: application.html.erb
to use it for the application, and a second layout home.html.erb
just for the home page. How can I associate cover.css
for only the index
action and have my dashboard layout and css for the rest of the application?
I am using rails 5 and bootstrap 4 alpha.