Displaying 1 result from an estimated 1 matches for "alternate_billing_address".
2006 Jul 30
3
ActiveRecord - Multiple Address for a single record
...ress, :as => :addressable
end
What I''m having trouble with is the company model. I''ve currently got:
class Company < ActiveRecord::Base
has_one :main_address, :as => :addressable
has_one :billing_address, :as => :addressable
has_one :alternate_billing_address, :as => :addressable
has_many :locations
end
This is clearly not current, as each address record only has room to
point back to a single company record. This is a common problem, so I''m
sure a standard solution is out there, I just can''t find it.
Does anyone have any a...