Created
May 6, 2011 07:05
-
-
Save DanThiffault/958543 to your computer and use it in GitHub Desktop.
Rails 3 page title helper
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
def page_title(title=view_context.t('.title')) | |
content_tag(:h1, title) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See http://blog.119labs.com/2011/05/page-title-helper-in-rails-3/ for more info