diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-11-04 14:48:31 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-12-12 16:47:14 +0000 |
commit | df8488465a7f395e953f5dc9f83ddb2bac8e5df5 (patch) | |
tree | 06a0afaea052b0e618955870135e1d3329cf1178 /app | |
parent | 11e2ae209c2c9c5d9452183daed1cc7f1226d7d6 (diff) |
Use RESTful routing for destroy action
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/admin_request_controller.rb | 2 | ||||
-rw-r--r-- | app/views/admin_request/edit.html.erb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin_request_controller.rb b/app/controllers/admin_request_controller.rb index 5ddc32648..b123a3467 100644 --- a/app/controllers/admin_request_controller.rb +++ b/app/controllers/admin_request_controller.rb @@ -79,7 +79,7 @@ class AdminRequestController < AdminController end end - def fully_destroy + def destroy @info_request = InfoRequest.find(params[:id]) user = @info_request.user diff --git a/app/views/admin_request/edit.html.erb b/app/views/admin_request/edit.html.erb index b97ffab35..68aeb4961 100644 --- a/app/views/admin_request/edit.html.erb +++ b/app/views/admin_request/edit.html.erb @@ -51,7 +51,7 @@ <div class="well"> -<%= form_tag admin_request_destroy_path(@info_request) do %> +<%= form_tag admin_request_path(@info_request), :method => :delete do %> <p> <strong>This is permanent and irreversible!</strong> <%= submit_tag 'Destroy request entirely', :class => 'btn btn-danger' %> <br>Use it mainly if someone posts private information, e.g. made a Data Protection request. It |