Ruby on Rails Discussions
get the value of a field pointed by a foreign key
rubyonrails-talk
Dave_Goodchild
(Dave Goodchild)
April 16, 2007, 2:50pm
1
I think you need to look into Associations, which manage the table relationships in your models.
Related topics
Topic
Replies
Views
Activity
How to fetch a field through few tables.
rubyonrails-talk
2
279
September 15, 2011
Two fields associated to the same table
rubyonrails-talk
0
97
August 8, 2007
AR Associations- Am I missing something?
rubyonrails-talk
0
120
November 19, 2006
Find by association
rubyonrails-talk
1
135
January 16, 2008
using find to get the value from a table referenced by foreign key
rubyonrails-talk
2
135
November 14, 2006