I'm currently using Authlogic to authenticate my app. I have a accounts and user model, where accounts has_many :users and user belongs_to :account.
I'm having trouble understanding how I should logically add this functionality into my app. "User creates a new account; creating a new account and an admin account. User can add additional users to his account at a later time." I know I should have a user model. At the moment, I have it simple create a new record with timestamps. I then need to associate each user with an account_id, where I've created in a new migration to add that column to the user table. My routes are working, and in the console I can see user.account and account.users just fine. I'm stuck at how I'm supposed to add the creation on the new account in my user > create method. Anyone have any clues or can maybe point me in the right direction? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

