Newbie and would really appreciate some help rendering objects in sets of 3's.
I currently display a list of objects with render:
<%= render @gifts %>
Each object has some characteristics that render from the partial _gift.html.erb
This all works fine. However, how do I loop through all the @gifts objects wrapping every 3 objects with a div? Desired result is something like:
<div class="row-fluid>
# The first 3 objects from @gifts
</div>
<div class="row-fluid>
# The next 3 objects from @gifts
</div>