Rails - Displaying Large Set of Data in a Table / Start new column after X rows
- by ChrisWesAllen
Hi, I trying to display a large set of checkboxes in my rails app and didnt knwo the syntax for displaying like 15 rows then after starting a new column.
I have a model with about 120 entries. Currently, I have it being displayed in the view as....
<% for interest in Interest.find(:all) %>
<%= check_box_tag Blah Blah Blah %>
<%= interest.name %>
<% end %>
How can I make it so it makes a table and after every 15 or so rows make a new column???