Created
March 18, 2016 09:14
-
-
Save ArunMichaelDsouza/3a60efd59cbacfde790d to your computer and use it in GitHub Desktop.
Controller specific CSS/JS in Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Inject via regular symbol --> | |
<% content_for :css do %> | |
<%= stylesheet_link_tag "shop" -%> | |
<% end %> | |
<!-- Inject via controller symbol | |
<%= stylesheet_link_tag params[:controller] %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment