My rails 3 app is working fine except for resource deletion which uses
The resource is "part".
When the user clicks on the "delete part" link, a confirmation pop up
box will appear.
Upon clicked on "ok", an ajax request is fired to the 'delete' method
in my controller.
In the "parts" controller, I have a before_filter which points to a
which checks if the current user has authorisation to delete the given
This method works fine for my other methods specified in the
before_filter but doesn't for the deletion method.
------------------ extract from: app/view/parts/index.html.erb (start)