Ask A Question

Notifications

You’re not receiving notifications from this thread.

Multiple user types App design

Saba Sharia asked in Rails

Hello,
Thanks for your time :)

My app have 3 type of humans.

  1. Admins
  2. Users (regular ones) | only read.
  3. BusinessUsers (creating self records)

I'm using devise gem for users.

I'm interesting the best way to design those scenario.

  1. use devise with multiple user types
  2. make three different models

Please share your best practise.

Reply

Generally, the easiest is use 1 Devise model and separate models for the type of user. That way everyone uses the same sign in page.

Reply

Thanks Chirs, i'm doing same.
Hope don't makes my app lame in future.

Reply

You can use a gem like cancancan to manage what your different user types can see and do

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,464+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.