What's the beste way to show a list with 20 images in rows of 5? Or, in other words, how do I clean up this ugly snippet?
<div class="row">
<% @images.each_with_index do |image, index| %>
<% if index != 0 && index % 5 == 0 %>
</div><div class="row">
<% end %>
<%= image_tag image.url %>
<% end %>
</div>