<table>
<% @tasks.in_groups_of(4, false) do |row_tasks| %>
<tr>
<% for task in row_tasks %>
<td><%= task.name %></td>
<% end %>
</tr>
<% end %>
</table>
<table><%@tasks.in_groups_of(4, false) do |row_tasks| %><tr><%for task in row_tasks %><td><%= task.name %></td><%end%></tr><%end%></table>