Created
December 17, 2010 22:56
-
-
Save mnelson/745860 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class ApplicationController < ActionController::Base | |
helper_method :page_title, | |
:page_description | |
# ... | |
end |
This file contains hidden or 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
en: | |
<meta key pluralized>: | |
<controller>: | |
<action>: | |
<id>: "Some meta value" |
This file contains hidden or 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
en: | |
page_titles: | |
users: | |
new: "Create Your Account" | |
edit: "Update Your Account" |
This file contains hidden or 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
en: | |
page_titles: | |
pages: | |
show: | |
tos: "Terms of Service" | |
pp: "Privacy Policy" | |
about: "About My Site" |
This file contains hidden or 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
en: | |
page_titles: | |
default: "My Super Site" | |
users: | |
default: "Manage Your Account" | |
new: "Create Your Account" | |
edit: "Update Your Account" |
This file contains hidden or 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
<title><%= page_detail(:page_title) %></title> | |
<meta name="description" content="<%= page_detail(:page_description) %>" /> |
This file contains hidden or 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
<title><%= page_title %></title> | |
<meta name="description" content="<%= page_description %>" /> |
This file contains hidden or 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 show | |
@user = User.find(params[:id]) | |
page_detail(:page_title, "#{@user.display_name} :: Profile") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment