Displaying 1 result from an estimated 1 matches for "card_country".
2008 Jul 07
0
ActiveRecord in Rails 2.1.0 misbehaving for Aggregate Attr.
...composite object (amongst others) called
BillingAddress defined within the Account model class as follows:
composed_of :billing_address,
:mapping => [%w(address_1 address_1), %w(address_2 address_2),
%w(address_3 address_3),
%w(city city), %w(state state), %w(zip zip),
%w(card_country country)] do |params|
BillingAddress.new params
end
To test this theory, in the Rails Console, I "found" and existing
Account object in the database using
acct = Account.find(id) -- where id is a specific account id
Now I create a billing address obj...