Rails nth partial condition

Posted by Joseph Silvashy on Stack Overflow See other posts from Stack Overflow or by Joseph Silvashy
Published on 2010-03-23T22:29:42Z Indexed on 2010/03/23 22:33 UTC
Read the original article Hit count: 419

Filed under:

I noticed the docs have:

<%= item_counter %>

But I have a partial which I want to add a class into on every 6th one, is there an easy way to do this?

© Stack Overflow or respective owner

Related posts about ruby-on-rails