Im using Devise gem and Rails to create a web app, and have it set up running correctly, How can I set it up so there is a certain email address which is allowed to access a page. For example if I login with email@testing.com, only then can I access a certain page.
Asked
Active
Viewed 83 times
1
-
1possible duplicate of [Rails 4 user roles and permissions](http://stackoverflow.com/questions/25272911/rails-4-user-roles-and-permissions) – Mohamed Yakout Jul 26 '15 at 14:04
1 Answers
1
You can use this gem https://github.com/ryanb/cancan upto rails 3, but i think its not supporting in rails 4, https://github.com/CanCanCommunity/cancancan for greater version OR you can use your own logic

amtest
- 690
- 1
- 6
- 26