RailsCasts Pro episodes are now free!
Learn more or hide this
<table> <% @tasks.in_groups_of(4, false) do |row_tasks| %> <tr> <% for task in row_tasks %> <td><%= task.name %></td> <% end %> </tr> <% end %> </table>