Let say i have the following car loop and i want to display 4 cars on one row and then create a new row etc.
<table>
<tr>
<% @cars.each do |car| %>
<td><%= car.name %></td>
<% end %>
</tr>
</table>
So i looks like this:
car1 car2 car3 car4
car5 car6 car7 car8
car9 car10 ... ... ...
How do I do that?