Last active
August 29, 2015 14:18
-
-
Save caiotarifa/a51ac3275c69f5ec0ac0 to your computer and use it in GitHub Desktop.
Helper to insert controller and view name as class in body.
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
module ApplicationHelper | |
def page_label | |
"#{controller_name} #{params[:action].gsub(/_/, " ")}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment