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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -