% for photo in @album.photos %>
<%= link_to image_tag( photo.path_modified_public("album") ), photo %>
<% end %>
<%= link_to "Update album", edit_album_path(@album) %>
<%= link_to "Upload photos", upload_album_path(@album) %>
<%= link_to "All albums", albums_path %>