Creating an admin user in Devise on Rails beta 3

Posted by erskingardner on Stack Overflow See other posts from Stack Overflow or by erskingardner
Published on 2010-04-25T13:42:37Z Indexed on 2010/04/25 13:43 UTC
Read the original article Hit count: 531

Filed under:
|

Ok, I'm probably going to feel quite dumb when someone answers this one with a simple thing that I'm missing but... here goes:

I've got a brand new app on rails 3 beta and I'm using devise for the authentication. I've run all the comments and everything is working perfectly at the moment. I've created a user role and an admin role (following these instructions: http://wiki.github.com/plataformatec/devise/adding-an-admin-role) and I've registered myself as the first user but how to do I register or create an admin role user? The directions from the devise guys setup the admin role to not be registerable but I'm unsure how you're supposed to create the admin if you can't register?!

Any help would be appreciated! Thanks!

© Stack Overflow or respective owner

Related posts about ruby-on-rails3

Related posts about devise