Someone already need to list the registrations of user from devise?
I want to do this list, with the option of admin delete users.
I did not found nothing about that on documentation =/
Someone already need to list the registrations of user from devise?
I want to do this list, with the option of admin delete users.
I did not found nothing about that on documentation =/
Refer to this: http://www.tonyamoyal.com/2010/09/29/rails-authentication-with-devise-and-cancan-part-2-restful-resources-for-administrators/
and you are good to go.
rails g controller users index
def index @users = User.find(:all) end