Having some trouble with ActiveRecord relationships.

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

Nevermind. I figured it out myself. The solution (for anyone in the
same boat) is Polymorphic Association, using interfaces.