Permalink
Browse files

guides: adds page title to home and credits, and revises it in the rest

  • Loading branch information...
1 parent 29d55d8 commit 80e7178789496921a7c6b1ea806d7a2e3abe66b4 @fxn fxn committed Apr 6, 2010
View
2 railties/guides/rails_guides/generator.rb
@@ -148,7 +148,7 @@ def set_header_section(body, view)
header = $1
header =~ /h2\.(.*)/
- page_title = $1.strip
+ page_title = "Ruby on Rails Guides: #{$1.strip}"
header = textile(header)
View
4 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>
View
4 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>

0 comments on commit 80e7178

Please sign in to comment.