I have been looking at the LoginGenerator gem. Looks great and can be
easily modified. However in my app I have two places where people can
login, one is for in my case “employees” the other is for “users”. They
are seperate tables in my database and have many different fields.
I have an admin area located at ./sysadmin/ where only “employees” can
login, they will have roles of things like “engineer”, “admin”,
“development” etc which alters what they can do.
The other area is for “users” these users also have roles (like
client_admin) different to the “employees” roles. Logging in here is
only for our clients.
So on the surface it seems like I need to have the functionality of the
logingenerator as two seperate instances running from two tables inside
the same app.
Can’t work out the best way to do it. Have you done anything similar?
(I had thought about using STI, but have decided against that for a
number of reasons).