I know that the following statement loads the scaffold stylesheet, but what exactly does stylesheet_link_tag do here?
<%= stylesheet_link_tag 'scaffold' %>
Thanks.
I know that the following statement loads the scaffold stylesheet, but what exactly does stylesheet_link_tag do here?
<%= stylesheet_link_tag 'scaffold' %>
Thanks.
Abder-rahman Ali wrote:
I know that the following statement loads the scaffold stylesheet, but what exactly does stylesheet_link_tag do here?
<%= stylesheet_link_tag 'scaffold' %>
Read the docs and look at the generated HTML, and all will become clear.
Thanks.
Best,
stylesheet_link_tag returns a stylesheet link tag for the sources specified as arguments. Basically you do not need to specify the .css extension. It is appended automatically. If you have several CSS files in the stylesheets directory, you can include all styles using :all as the source.