<table> <% @instance.in_groups_of(5) do |row| %> <tr> <% row.each do |data| %> # The nil check is required because Rails pads empty table cells with nil. <td><%= data.field unless data.nil? %></td> <% end %> </tr> <% end %> </table>
You need to create an account or log in to post comments to this site.