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:
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 %>
|
||||
|
Loading…
Reference in New Issue
Block a user