photomix/app/views/photos/edit.html.erb
2010-04-13 15:10:40 -04:00

15 lines
405 B
Plaintext

<h1>Edit Photo</h1>
<%= image_tag @photo.file.preview.url %>
<% form_for @photo do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Update" %>
<% end %>
<% content_for :action_links do %>
<%= link_to("Delete photo", { :action => "destroy", :id => @photo },
:confirm => "Are you sure you want to delete this photo?",
:method => :delete) %>
<% end %>