<% for work in @works do %>
<% work.images.each do |image| %> <%= image_tag image.photo.thumb(Work.style_grid_5).url, :class => "attachment-grid_3"%> <% end %>
<% end %>