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

13 lines
425 B
Plaintext
Raw Normal View History

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