photomix/app/views/photos/edit.html.erb

15 lines
405 B
Plaintext
Raw Normal View History

2009-05-25 21:39:43 +02:00
<h1>Edit Photo</h1>
2009-06-16 21:43:03 +02:00
<%= image_tag @photo.file.preview.url %>
2009-05-25 21:39:43 +02:00
<% form_for @photo do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Update" %>
<% end %>
2009-06-16 21:43:03 +02:00
<% content_for :action_links do %>
<%= link_to("Delete photo", { :action => "destroy", :id => @photo },
2009-06-02 00:08:57 +02:00
:confirm => "Are you sure you want to delete this photo?",
:method => :delete) %>
2009-06-16 21:43:03 +02:00
<% end %>