Skip to content

Instantly share code, notes, and snippets.

@alexshagov
Created April 28, 2016 20:21
Show Gist options
  • Save alexshagov/49e56a2e118608cff9171308fb6a372f to your computer and use it in GitHub Desktop.
Save alexshagov/49e56a2e118608cff9171308fb6a372f to your computer and use it in GitHub Desktop.
blg.1-5
<div class="container">
<h3><%= link_to "Add picture", new_picture_path %></h3>
<% @pictures.each do |picture| %>
<div class = "picture" data-id = "<%= picture.id %>">
<%= image_tag(picture.file.url(:medium)) %>
</div>
<% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment