Edit Photo
<% form_for @photo do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Update" %>
<% end %>
<%= image_tag @photo.path_modified_public("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 %>