Displaying 1 result from an estimated 1 matches for "afe876fa".
2006 Aug 17
2
Knowing the partial iteration number
Hi,
How can I know the iteration number of a *render (:partial)* iterating
through a collection?
Example:
I got a collection containing 3 elements:
*John
*Pierre
*Chris
John would respond to 1, Pierre to 2 and Chris to 3 and so on...
Kind of like the *cycle* method acts but to know the iteration number.
Guillaume Carbonneau
-------------- next part --------------
An HTML attachment was