I have been following the book diligently with no issues. I am now totally stuck. I implemented the before_filter :authorize and doing so is not allowing me to delete users from the users/index.html.erb view.
Without the :authorize before_filter users can be deleted just fine.
Instead upon clicking “destroy” i am first asked “are you sure” and then redirected to the login page (the user is not deleted).
I have gone so far as to copy exactly the code for the following files: application_controller.rb, users_controller.rb, sessions_controller.rb, views/users/index.html.erb, etc…
Is this something others are having troubles with? Any help is greatly appreciated.