Created
April 28, 2016 20:21
-
-
Save alexshagov/49e56a2e118608cff9171308fb6a372f to your computer and use it in GitHub Desktop.
blg.1-5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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