Displaying 1 result from an estimated 1 matches for "myhelper_tag".
2005 Dec 21
0
Counting helpers through a view
...fferent 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>
... Some stuff ...
<div id="helper_3">...