I have a stylesheet application.css, defined in layouts/application.html.erb:
<%= stylesheet_link_tag "application" %>
However, there is a section of the site where the views will use a completely different stylesheet dashboard.css, which I defined in index.html.erb:
<head>
<title>My title</title>
<%= stylesheet_link_tag "dashboard" %>
..
If I do not delete the stylesheet_link_tag in the application layout file, conflicts arise that make the panel view visible strange. If I move the app’s stylesheet style tag tag to the _header.html.erb part that displays with each view in the non-panel section, as shown below, this does not work. How can I name them?
<%= stylesheet_link_tag "application" %>
<header>
<div id="headercontainer">
..
source
share