Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cycle: make an odd number be marked as odd.

Just a minor issue that was annoying me so I thought that I would jump in and fix it.
  • Loading branch information...
commit 4d3ec4c6a8584fdd9275576ecab07302973e7cc5 1 parent 9994bd4
@robertmassaioli robertmassaioli authored fxn committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_view/helpers/text_helper.rb
View
2  actionpack/lib/action_view/helpers/text_helper.rb
@@ -280,7 +280,7 @@ def simple_format(text, html_options={}, options={})
# @items = [1,2,3,4]
# <table>
# <% @items.each do |item| %>
- # <tr class="<%= cycle("even", "odd") -%>">
+ # <tr class="<%= cycle("odd", "even") -%>">
# <td>item</td>
# </tr>
# <% end %>
Please sign in to comment.
Something went wrong with that request. Please try again.