How do I retrieve the value of an attribute on my join table? For example: table ''people_places'' person_id place_id disposition The first two use foreign keys and all that (I get that part). The value of ''disposition'' is what I want. -- Posted via http://www.ruby-forum.com/.
Shit. Nevermind. Got it. -- Posted via http://www.ruby-forum.com/.
If you''re going to post here, for God''s sake tell us what your solution was.
Here, here. Totally agree with this suggestion. It''ll definitely help those who search the archives before asking for help. A couple of other suggestions... Don''t assume that everyone is using threaded readers and so can see what topic a response relates to if you change the subject line. Along the same vein, in case my first suggestion is too hard to handle, it definitely helps if you include at least a *scrap* of the posting to which you''re responding. ;-) Have a great day! Bill ----- Original Message ----- From: "Anonymous" <list@freeonrails.com> To: <rails@lists.rubyonrails.org> Sent: 2006-04-09 1:57 PM Subject: [Rails] And the answer was...?> > If you''re going to post here, for God''s sake tell us what your solutionwas.> _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Justin Skolnick wrote:> How do I retrieve the value of an attribute on my join table? For > example: > > table ''people_places'' > person_id > place_id > disposition > > The first two use foreign keys and all that (I get that part). The value > of ''disposition'' is what I want.Note that rich associations (attributes in join tables) have recently been deprecated. If you want that functionality, you should use a full join model (has_many :through). http://dev.rubyonrails.org/changeset/4123 -- Josh Susser http://blog.hasmanythrough.com -- Posted via http://www.ruby-forum.com/.