fixes #131: Unable to delete pools

This commit is contained in:
albert
2011-10-15 22:36:43 -04:00
parent d957a1eba4
commit 91f71201fa
4 changed files with 17 additions and 0 deletions

View File

@@ -8,6 +8,9 @@
<li><%= link_to "Show", pool_path(@pool) %></li>
<li><%= link_to "Posts", posts_path(:tags => "pool:#{@pool.id}") %></li>
<li><%= link_to "Edit", edit_pool_path(@pool) %></li>
<% if @pool.deletable_by?(CurrentUser.user) %>
<li><%= link_to "Delete", pool_path(@pool), :method => :delete, :confirm => "Are you sure you want to delete this pool?", :remote => true %></li>
<% end %>
<li><%= link_to "Order", edit_pool_order_path(@pool) %></li>
<% end %>
</menu>

View File

@@ -0,0 +1 @@
Danbooru.notice("Pool deleted");