Hi all,
I have a few tables representing people and organizations in my
application. I want each of them to use an address table to represent
their respective street addresses. The problem I am running into is
that when I say Person has_one :address, and Company has_one :address
it fails upon loading when it looks for addresses.person_id and
addresses.company_id respectively. Is there a way for ActiveRecord to
look for a Person''s address based off of people.address_id?
Thanks,
John
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---