2009-05-22 21:04:41 +02:00
|
|
|
<h1>Edit Album</h1>
|
|
|
|
|
2010-09-17 18:52:59 +02:00
|
|
|
<%= form_for @album do |f| %>
|
2009-05-22 21:04:41 +02:00
|
|
|
<%= f.error_messages %>
|
|
|
|
<%= render :partial => "form", :object => f %>
|
|
|
|
<%= f.submit "Update" %>
|
|
|
|
<% end %>
|
|
|
|
|
2009-06-28 18:02:19 +02:00
|
|
|
|
|
|
|
<% content_for :action_links do %>
|
|
|
|
<% if has_role?("admin") %>
|
2009-10-12 00:20:38 +02:00
|
|
|
|
2009-07-06 15:41:19 +02:00
|
|
|
<%= link_to("Delete album", { :action => "destroy", :id => @album },
|
2009-06-02 00:08:57 +02:00
|
|
|
:confirm => "Are you sure you want to delete this album?",
|
|
|
|
:method => :delete) %>
|
2009-06-28 18:02:19 +02:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|