aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-04-06 11:30:00 -0700
committerXavier Noria <fxn@hashref.com>2010-04-06 11:30:00 -0700
commit80e7178789496921a7c6b1ea806d7a2e3abe66b4 (patch)
tree34894f78bb42449f1bedf970261991b49f89df61 /railties
parent29d55d86d067edfee22445f468ca60ea4c7dbf16 (diff)
downloadrails-80e7178789496921a7c6b1ea806d7a2e3abe66b4.tar.gz
rails-80e7178789496921a7c6b1ea806d7a2e3abe66b4.tar.bz2
rails-80e7178789496921a7c6b1ea806d7a2e3abe66b4.zip
guides: adds page title to home and credits, and revises it in the rest
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/rails_guides/generator.rb2
-rw-r--r--railties/guides/source/credits.html.erb4
-rw-r--r--railties/guides/source/index.html.erb4
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>