Hi Fred,
So that means in my user model I can associate by using the following?
belongs_to :other_user, :class_name => "UserMailbox"
But what about when I want to go back the other way? So I have the
mailbox object which has the field "other_user_id" but how do I create
the association between this ID and the ID in the users table which is
its primary key (id)?
Chris
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment