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
Two fields associated to the same table
rubyonrails-talk
0
102
August 8, 2007
How to fetch a field through few tables.
rubyonrails-talk
2
289
September 15, 2011
AR Associations- Am I missing something?
rubyonrails-talk
0
121
November 19, 2006
using find to get the value from a table referenced by foreign key
rubyonrails-talk
2
143
November 14, 2006
Find by association
rubyonrails-talk
1
143
January 16, 2008