Listing users with Devise

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 =/


Fernando A.

Users are simply kept in a table, so just handle them like any other
model.

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. :slight_smile:

On Tue, Jun 14, 2011 at 5:43 AM, Fernando A. <

rails g controller users index

def index
@users = User.find(:all)
end

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs