I need to create an admin role using devise for my app. I’ve created basic authentication using devise . I have a devise user model in my app but now i need an admin who can show edit and destroy all the users. I tried following the tutorials but none of them helped.
I am using rails 3.0.10 and ruby 1.9.2-p290.
I need to create an admin role using devise for my app. I’ve created
Share
You just define role.rb first by creating migratioin
then in role.rb
And in user model
Insert two roles into DB
Then check by this
Make sure insert role_id:integer into user model
Try it…….