Instantly share code, notes, and snippets.

Embed
What would you like to do?
<h2><%= @album.name %></h2>
<ul>
<%= for photo <- @album.photos do %>
<li>
<img src=<%= "https://s3.amazonaws.com/#{photo.album_id}/" <> photo.image %> />
</li>
<% end %>
</ul>
<span><%= link "Edit", to: album_path(@conn, :edit, @album) %></span>
<span><%= link "Back", to: album_path(@conn, :index) %></span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment