The cycle helpers need to store the cycles in a place that is guaranteed to be reset every time a page is rendered, so it uses an instance variable of ActionView::Base.
Source Code
# File action_view/helpers/text_helper.rb, line 447 def get_cycle(name) @_cycles = Hash.new unless defined?(@_cycles) return @_cycles[name] end
<code/>and<pre/>for code samples.