This is my first post on Stack Overflow. I am trying to build a system that authenticates three types of user with completely different site experiences: Customers, Employers, and Vendors.
I’m thinking of using a polymorphic ‘User’ table (using AuthLogic) with username, password, and user_type (+ AuthLogic’s other required fields). If this is a good way to go, how do I set this up so after authenticating an user_id with a user_type the standard way, I can direct the user to the page that’s right for them?
Thanks.
I’d consider STI in this case. Then each can authenticate as a normal user, but easily branch into their own specific behavior when needed. You may need to do some work with your routes to make everything line up, however.