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.
This commit is contained in:
Robert Massaioli 2011-06-13 14:58:56 +10:00
parent 657ba2a9f0
commit d7a2431408

@ -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 %>