diff --git a/app/views/albums/_photos.html.erb b/app/views/albums/_photos.html.erb index 472f8a1..f14efde 100644 --- a/app/views/albums/_photos.html.erb +++ b/app/views/albums/_photos.html.erb @@ -3,7 +3,7 @@ <% else -%> <% photos.each_with_index do |photo, idx| -%> -
+
<% if (idx + 1) % 3 == 0 or photos.last == photo -%>
<% end -%> <% end -%>