photomix/app/views/photos/edit.html.erb
2009-06-03 01:33:39 +02:00

13 lines
No EOL
425 B
Text

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