photomix/app/views/collections/edit.html.erb
2009-08-03 16:29:40 +02:00

13 lines
No EOL
393 B
Text

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