views:

47

answers:

1

Hello,

I'm very new to Rails (this is my first project). I have a situation where an account can have many users and projects, and users can have many projects and vice versa. I have authlogic running on my Users model. I'm confused about where to go after this. After creating a new user, how do I pass the user information into account?

accounts has_many :users has_many :projects

projects belongs_to: account has many :users, :through => projects_users

users belongs_to: account has many :projects, :through => projects_users

I know this is a very basic question, but I don't understand what comes next. Thanks for any hep you can provide.

K.

A: 

Your question is really vague for anybody to answer. Give specific details so that somebody can help.

Teja Kantamneni
I solved this problem. The best resource I found was here: http://guides.rubyonrails.org/getting_started.html, as regards relating the comments to posts.
Kate