aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2007-11-06 23:25:02 +0000
committerMarcel Molina <marcel@vernix.org>2007-11-06 23:25:02 +0000
commit458ef3b5528ea3e94ffcad39637ef3cc7ed5bf62 (patch)
treed954fe9edbba1c2fcd07afb10f1c297a8f084580
parentc5588437d3651ce1a72b31a7a4858cd1660dc7df (diff)
downloadrails-458ef3b5528ea3e94ffcad39637ef3cc7ed5bf62.tar.gz
rails-458ef3b5528ea3e94ffcad39637ef3cc7ed5bf62.tar.bz2
rails-458ef3b5528ea3e94ffcad39637ef3cc7ed5bf62.zip
Fix syntax error in documentation example for cycle method. Closes #8735 [foca]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--actionpack/CHANGELOG2
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index fc80c0dded..e75a65e3f4 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Fix syntax error in documentation example for cycle method. Closes #8735 [foca]
+
* Document :with option for link_to_remote. Closes #8765 [ryanb]
* Document :minute_step option for time_select. Closes #8814 [brupm]
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb
index d0c8f155ea..8f792c181a 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -337,7 +337,7 @@ module ActionView
# {:first => 'Emily', :middle => 'Shannon', :maiden => 'Pike', :last => 'Hicks'},
# {:first => 'June', :middle => 'Dae', :last => 'Jones'}]
# <% @items.each do |item| %>
- # <tr class="<%= cycle("even", "odd", :name => "row_class")
+ # <tr class="<%= cycle("even", "odd", :name => "row_class") -%>">
# <td>
# <% item.values.each do |value| %>
# <%# Create a named cycle "colors" %>