Generally, you what you’ve done is authentication, and what are you seeking is authorization. You can either implement it yourself or use a gem like CanCan (Devise is no option here, because it handles the part you’ve already done — the authentication part.) Using CanCan seems like the easiest option, it does not dictate how your authentication should be handled so it’s really easy to adopt it.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Authentication and authorization | 7 | 321 | July 9, 2011 | |
Rails auth without any gem | 2 | 170 | February 20, 2013 | |
What is your favourite authentication gem and why? | 8 | 132 | October 21, 2013 | |
Rails auth without any gem | 0 | 169 | February 20, 2013 | |
[Wanted] A gem that handles authentication AND authorization for me | 6 | 158 | October 16, 2011 |