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.
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.
Shit. Nevermind. Got it.
If you’re going to post here, for God’s sake tell us what your solution
was.
Justin S. wrote:
How do I retrieve the value of an attribute on my join table? For
example:table ‘people_places’
person_id
place_id
dispositionThe 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 S.
http://blog.hasmanythrough.com
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs