module ActionView::Helpers::TextHelper

def reset_cycle(name = "default")


<% end %>

<% reset_cycle("colors") %>

<% end %>

<%= value %>
">
<% item.each do |value| %>
">
<% @items.each do |item| %>

<% @items = [[1,2,3,4], [5,6,3], [3,4,5,6,7,4]] %>
<%# Alternate CSS classes for even and odd numbers... %>

it is called. Pass in +name+ to reset a named cycle.
Resets a cycle so that it starts from the first element the next time
def reset_cycle(name = "default")
  cycle = get_cycle(name)
  cycle.reset if cycle
end