Skip to content
Browse files

guides: warn about edge guides at the top of the home preamble, and m…

…ention that only for edge guides, stable guides need no warning
  • Loading branch information...
1 parent 4e391a3 commit 4996d1a445acd965d0064500ad00d692a742f669 @fxn fxn committed Apr 2, 2010
Showing with 15 additions and 11 deletions.
  1. +15 −11 railties/guides/source/index.html.erb
View
26 railties/guides/source/index.html.erb
@@ -1,17 +1,21 @@
<% content_for :header_section do %>
<h2>Ruby on Rails Guides</h2>
-<p>These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together.</p>
-<p>There are two different versions of the Guides site, and you should be sure to use the one that applies to your situation:</p>
-
-<ul>
- <li>
- <a href="http://guides.rubyonrails.org">Current release version</a> - based on Rails 2.3.
- </li>
- <li>
- <a href="http://edgeguides.rubyonrails.org">Edge version</a> - based on the current Rails <a href="http://github.com/rails/rails/tree/master">master branch</a>.
- </li>
-</ul>
+<% if @edge %>
+<p>
+ These are <b>Edge Guides</b>, based on the current
+ <a href="http://github.com/rails/rails/tree/master">master branch</a>.
+</p>
+<p>
+ If you are looking for the ones for the stable version please check
+ <a href="http://guides.rubyonrails.org">http://guides.rubyonrails.org</a> instead.
+</p>
+<% end %>
+
+<p>
+ 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 4996d1a

Please sign in to comment.
Something went wrong with that request. Please try again.