Displaying 1 result from an estimated 1 matches for "helper_1".
Did you mean:
helper1
2005 Dec 21
0
Counting helpers through a view
...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"> .. </div>
Is there another way to do this? Does this seem reasonable to use the
''before_filter'' to reset the count? It...