-3

I remember a long time ago I was using CanCan, but as is possible to see from their Github, it hasn't been touched for more than two years.

What's the best approach now, in 2015, to implement different user roles? What I actually need - I have a system where are users and admins. And I need to have different roles for admins.

Florent Ferry
  • 1,397
  • 1
  • 10
  • 21
user984621
  • 46,344
  • 73
  • 224
  • 412

1 Answers1

3

For creating user Roles and managing them (add/delete/search) you can use Rolify gem and for authorizing these roles from your controllers you can use pundit gem because it's more organized than cancancan(Rails 4 version of cancan)

Moustafa Samir
  • 2,248
  • 1
  • 25
  • 32