Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%
- count = 0
- size = 2
- %>
- <table>
- <% for medium in @gallery.media %>
- <% if (count % size) == 0 %>
- <%= "<tr>" %>
- <% end %>
- <td><%= image_tag (url_for_file_column medium, 'file'), :size => "100x100" %></td>
- <% if count % size = 0 %>
- <%= "</tr>" %>
- <% end %>
- <% count += 1 %>
- <% end %>
- </table>
Add Comment
Please, Sign In to add comment