Use the variable category_counter in your partial.
-- Jean-François.
--
Ruby ( http://www.rubyfrance.org ) on Rails ( http://www.railsfrance.org )
Use the variable category_counter in your partial.
-- Jean-François.
The cycle method is a great way to do this. Here is an example:
<tr class="ListLine<%= cycle(0,1) %>">
Then just style ListLine0 and ListLine1.
Aaron
That is cool. I wish I new that before I wrote my row_class method. :)