> * you could (if you like it clunky) just use .each maintain your own > counter and do your next row operations when it gets to a multiple of > 3
I think that's what I was trying to do, though I didn't know how to get a new table row was I on the right track? <table> <% @photos.each do |photo| %> <% count = 0 %> <% while count <= 3 %> <tr> <td><%= link_to image_tag(photo.image.url(:thumb)), photo %></td> <% count += 1 %> <tr/> <% end %> ... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.