aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-04-02 15:04:54 -0700
committerXavier Noria <fxn@hashref.com>2010-04-02 15:04:54 -0700
commit4996d1a445acd965d0064500ad00d692a742f669 (patch)
tree66c7bd50abaff356d50e40fd9a8bd1b45e0d1063 /railties
parent4e391a3d4976814b623ebd86ee8d7b5fd17e8af5 (diff)
downloadrails-4996d1a445acd965d0064500ad00d692a742f669.tar.gz
rails-4996d1a445acd965d0064500ad00d692a742f669.tar.bz2
rails-4996d1a445acd965d0064500ad00d692a742f669.zip
guides: warn about edge guides at the top of the home preamble, and mention that only for edge guides, stable guides need no warning
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/index.html.erb26
1 files changed, 15 insertions, 11 deletions
diff --git a/railties/guides/source/index.html.erb b/railties/guides/source/index.html.erb
index be38499c85..8864b52325 100644
--- a/railties/guides/source/index.html.erb
+++ b/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 %>