Using
<%= stylesheet_link_tag "application", :media => "all" %>
will include a stylesheet called application.css , you can have files like application.css.sass or application.css.scss or any other extensions and rails will compile the css file using the correct stylesheet engine and serve the application.css file .
The media = all attribute is actually a css attribute, which means that css will be enabled for all media, for example, when viewing a website, when printing a screen, etc. You can find more information about the media attribute at this link.
Using
<%= stylesheet_link_tag :all %>
You will include all the stylesheets that you use in the app / assets / stylesheets directory.
You can find more information at this link.
rorra
source share