diff options
author | Xavier Noria <fxn@hashref.com> | 2010-04-06 11:30:00 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-04-06 11:30:00 -0700 |
commit | 80e7178789496921a7c6b1ea806d7a2e3abe66b4 (patch) | |
tree | 34894f78bb42449f1bedf970261991b49f89df61 | |
parent | 29d55d86d067edfee22445f468ca60ea4c7dbf16 (diff) | |
download | rails-80e7178789496921a7c6b1ea806d7a2e3abe66b4.tar.gz rails-80e7178789496921a7c6b1ea806d7a2e3abe66b4.tar.bz2 rails-80e7178789496921a7c6b1ea806d7a2e3abe66b4.zip |
guides: adds page title to home and credits, and revises it in the rest
-rw-r--r-- | railties/guides/rails_guides/generator.rb | 2 | ||||
-rw-r--r-- | railties/guides/source/credits.html.erb | 4 | ||||
-rw-r--r-- | railties/guides/source/index.html.erb | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb index f577182f5f..3c45c83c1c 100644 --- a/railties/guides/rails_guides/generator.rb +++ b/railties/guides/rails_guides/generator.rb @@ -148,7 +148,7 @@ module RailsGuides header = $1 header =~ /h2\.(.*)/ - page_title = $1.strip + page_title = "Ruby on Rails Guides: #{$1.strip}" header = textile(header) diff --git a/railties/guides/source/credits.html.erb b/railties/guides/source/credits.html.erb index c85f9bb913..4d0d1fe782 100644 --- a/railties/guides/source/credits.html.erb +++ b/railties/guides/source/credits.html.erb @@ -1,3 +1,7 @@ +<% content_for :page_title do %> +Ruby on Rails Guides: Credits +<% end %> + <% content_for :header_section do %> <h2>Credits</h2> diff --git a/railties/guides/source/index.html.erb b/railties/guides/source/index.html.erb index 8864b52325..52da16d453 100644 --- a/railties/guides/source/index.html.erb +++ b/railties/guides/source/index.html.erb @@ -1,3 +1,7 @@ +<% content_for :page_title do %> +Ruby on Rails Guides +<% end %> + <% content_for :header_section do %> <h2>Ruby on Rails Guides</h2> |