Created
May 12, 2016 23:00
-
-
Save douglaslise/f70733ef81f7c385b1bf033f46672a7a to your computer and use it in GitHub Desktop.
Custom CSS per controller and action
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
.home_controller.index_action { | |
background-color: blue; | |
} |
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
<body class="<%= controller_name %>_controller <%= action_name %>_action"> | |
Isso vai gerar: | |
<body class="home_controller index_action"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment