Permalink
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...
1 parent 9994bd4 commit 4d3ec4c6a8584fdd9275576ecab07302973e7cc5 @robertmassaioli robertmassaioli committed with fxn Jun 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 %>

0 comments on commit 4d3ec4c

Please sign in to comment.