Skip to content

Commit

Permalink
guides: adds page title to home and credits, and revises it in the rest
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Apr 6, 2010
1 parent 29d55d8 commit 80e7178
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/rails_guides/generator.rb
Expand Up @@ -148,7 +148,7 @@ def set_header_section(body, view)
header = $1 header = $1


header =~ /h2\.(.*)/ header =~ /h2\.(.*)/
page_title = $1.strip page_title = "Ruby on Rails Guides: #{$1.strip}"


header = textile(header) header = textile(header)


Expand Down
4 changes: 4 additions & 0 deletions 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 %> <% content_for :header_section do %>
<h2>Credits</h2> <h2>Credits</h2>


Expand Down
4 changes: 4 additions & 0 deletions 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 %> <% content_for :header_section do %>
<h2>Ruby on Rails Guides</h2> <h2>Ruby on Rails Guides</h2>


Expand Down

0 comments on commit 80e7178

Please sign in to comment.