I’ve read the following:
http://rdoc.info/projects/binarylogic/authlogic
(Module: Authlogic::AuthenticatesMany)
And from what I understand Authlogic will support users that all belong
to one account. I’m in the process of thinking of how my model should
be formed, and was hoping to get some pointers on how I could
better/adjust the following:
ruby script/generate model Account account_number:integer
user_id:integer is_admin:boolean
I basically would like to each user to be tied to an account number, and
also another indicator to tell whether that user is an admin.
Upon successful user registration, a new account is created and that
user has the option to add additional users to their account only.
Would a model such as the one above be able to accomplish something like
this? Do you think I’m missing something important?
In regards to using Authlogic, from what my mind can comprehend, it
provides a way to associate users with accounts, but the foundation of
having a model and controller still is required prior to using it.
Would that be correct?