Hi there,
I'm using Devise and CanCan. All my users will be created and manage through my Admin::UsersController by a User that has a Role of "Admin". Devise will not register or unregister a User.
Every time that a log_in "Admin" User, that was authenticated ( before_filter :authenticate_user! ), try to delete other user Devise drives me to sing_in page.
What should I do to let the "Admin" User delete others?
David Sousa
Codes:
class Admin::UsersController < Admin::AdminController before_filter :authenticate_user! load_and_authorize_resource
# DELETE /admin/users/:id HTML