Edit Photo

<% form_for @photo do |f| %> <%= f.error_messages %> <%= render :partial => "form", :object => f %> <%= f.submit "Update" %> <% end %> <%= image_tag @photo.public_path_modified("large") %>
<%= link_to("Delete photo", { :action => "destroy", :id => @photo }, :confirm => "Are you sure you want to delete this photo?", :method => :delete) %>
<%= link_to "All albums", albums_path %>