Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rails 3 page title helper
def page_title(title=view_context.t('.title'))
content_tag(:h1, title)
end
@DanThiffault

This comment has been minimized.

Show comment
Hide comment
Owner

DanThiffault commented May 6, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment