delete action from post/show requires confirmation+flag reason now

This commit is contained in:
albert
2013-02-23 16:53:03 -05:00
parent 138f3eb3db
commit 4a61498f0e
5 changed files with 27 additions and 7 deletions

View File

@@ -16,8 +16,9 @@ Danbooru::Application.routes.draw do
resource :queue, :only => [:show]
resource :approval, :only => [:create]
resource :disapproval, :only => [:create]
resources :posts, :only => [:delete, :undelete] do
resources :posts, :only => [:delete, :undelete, :annihilate, :confirm_delete] do
member do
get :confirm_delete
post :annihilate
post :delete
post :undelete