PDA

View Full Version : Having some trouble with ActiveRecord relationships.


rubyonrails-talk
August 28th, 2006, 11:03 AM
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

More... (http://groups.google.com/group/rubyonrails-talk/msg/31f18cf21690acf3)