| Issue 48: | PATCH Cannot delete admin users. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Create an admin user an try to delete it.
What is the expected output? What do you see instead?
Nothing happens, you are just redirected to the list action. It should
delete the user, and it should not appear in the list.
What version of the product are you using? On what operating system?
trunk. Ubuntu 7.04
Please provide any additional information below.
In the shell:
Processing UsersController#destroy (for 127.0.0.1 at 2008-03-12 12:57:45) [GET]
Session ID: 364deb6d0c97f428c4644ac669a607b0
Parameters: {"action"=>"destroy", "id"=>"541702177",
"controller"=>"admin/users"}
...
Redirected to http://localhost:3000/admin/users/list
Filter chain halted as
[#<ActionController::Filters::ClassMethods::ProcFilter:0xb68e58bc
@filter=#<Proc:0xb70163c0@/home/edmundo/workspace_aptana/substruct_trunk/vendor/rails/actionpack/lib/action_controller/verification.rb:75>>]
rendered_or_redirected.
Completed in 0.06155 (16 reqs/sec) | DB: 0.01133 (18%) | 302 Found
[http://localhost/admin/users/destroy/541702177
...
As shown above, its using GET in the destroy action and the filter chain
halts. The option in the link_to that defines that it should use POST is wrong.
Fixed a deprecated render partial command too.
Apr 8, 2008
Project Member
#1
subim...@gmail.com
Status:
Fixed
|