Displaying 1 result from an estimated 1 matches for "myhelper_resetcount".
2005 Dec 21
0
Counting helpers through a view
...ot;Element.toggle" sorts of relations, so I need to have
different id''s assigned to their HTML elements.
What I would like to do is somehow count them as they are installed in
the view and reset at the top of the view. My current thinking is:
--- In controller ---
before_filter :myhelper_resetcount
def someaction
end
--- In view ---
<%= myhelper_tag() %>
... Some stuff ...
<%= myhelper_tag() %>
... Some stuff ...
<%= myhelper_tag() %>
...
--- Results ---
<div id="helper_1"> .. </div>
... Some stuff ...
<div id="helper_2"> .. </div...