Rails - Displaying Large Set of Data in a Table / Start new column after X rows

Posted by ChrisWesAllen on Stack Overflow See other posts from Stack Overflow or by ChrisWesAllen
Published on 2010-04-19T19:43:11Z Indexed on 2010/04/19 20:53 UTC
Read the original article Hit count: 156

Filed under:
|
|
|

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???

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about html