Permalink
Browse files

edge guides didn't link to a real GitHub tree without the full commit…

… hash
  • Loading branch information...
1 parent 71922fe commit 6b5548e17ea5b58b17f5b1a6e0c9887b67563c50 @agrobbin committed Nov 14, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 guides/rails_guides/generator.rb
  2. +1 −1 guides/source/_welcome.html.erb
View
1 guides/rails_guides/generator.rb
@@ -85,6 +85,7 @@ def set_flags_from_environment
@all = ENV['ALL'] == '1'
@kindle = ENV['KINDLE'] == '1'
@version = ENV['RAILS_VERSION'] || `git rev-parse --short HEAD`.chomp
+ @full_version = ENV['RAILS_VERSION'] || `git rev-parse HEAD`.chomp
@lang = ENV['GUIDES_LANGUAGE']
end
View
2 guides/source/_welcome.html.erb
@@ -10,7 +10,7 @@
</p>
<% else %>
<p>
- These are the new guides for Rails 3.2 based on <a href="https://github.com/rails/rails/tree/<%= @version %>"><%= @version %></a>.
+ These are the new guides for Rails 3.2 based on <a href="https://github.com/rails/rails/tree/<%= @full_version %>"><%= @version %></a>.
These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together.
</p>
<% end %>

0 comments on commit 6b5548e

Please sign in to comment.