<% @attachments.each do |attachment| %> <%= image_tag attachment.url %> <% end %>