Sounds like you could just add a "belongs_to :user" to the Comment class.

But since you already have "comments" on the user, you'll need to give the 
reverse association another name. Perhaps "comments_owned"

So add "has_many :comments_owned, :class_name => Comment" to User.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/2wZGRNY7WwAJ.
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.

Reply via email to