authentication - Rails Devise Multiple User Models -
I am using Devise for authentication and is currently a user model. Users in my application will have many employees. I need both users and employees to sign in to the application and look at different things.
Users and employees have different features, they share email and password, but employees have many other features.
Whether the two models (both users and employees) Can be used with the divis and can be allowed to log in through different log forms?
Any advice / much appreciated
thanks
li
Creating rail village employees will help you then supporters
current_employee and
employee_signed_in? Use
Comments
Post a Comment