Search code examples
ruby-on-railsdevisecancancancancan

Multiple Devise users or one user and permissions with CanCanCan?


What is the preferred way to achieve two types of users (Client, Admin) with different attributes and behaviors?

Having two types of users created by Devise or having just one User model and setting permissions via CanCanCan?

Thanks


Solution

  • I would say single model with permissions. I made a detailed response on how to approach this here:

    Setting up different User models and registration paths for Devise on Ruby on Rails