- Generate new rails app
- Generate user model with (name: string, role: integer(enum))
- Should be two user roles
admin
anduser
- Admin should be able to CRUD other users and admin (scaffold)
- User with role
user
should be able to see only welcome page - Use device gem for authentication
savchenkoandrey / lesson3 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from geekhub-rails/lesson3