Save 36% for Black Friday! Learn more

New Discussion

Notifications

You’re not receiving notifications from this thread.

Multiple user types App design

3
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.

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.

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

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

Join the discussion
Create an account Log in