search for: address_2

Displaying 3 results from an estimated 3 matches for "address_2".

Did you mean: address2
2008 Jan 29
0
ActionMailer calling shared methods
...Here is the relevant block of code from the email template <% address = if @order.address.is_foreign wgg_replace_crlf(@order.address.foreign_address) else "#{@order.address.addressee}<br />" + "#{@order.address.address_1}<br />" + (@order.address.address_2.blank? ? '''' : "# {@order.address.address_2}<br />") + "#{@order.address.city}, #{@order.address.state} # {@order.address.zip_code}" + (@order.address.plus_four.blank? ? '''' : "-# {@order.address.plus_four}") end %&gt...
2008 Jul 07
0
ActiveRecord in Rails 2.1.0 misbehaving for Aggregate Attr.
...use-case: I have an Account model that shadows the accounts table in database. This account object contains a 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 t...
2007 Nov 07
5
Unexplainable failure...at least for me
...0x24c6420 @new_record=true, @attributes={"city"=>nil, "latitude"=>nil, "region_code"=>nil, "province_id"=>nil, "country_id"=>nil, "location_type"=>nil, "location_id"=>nil, "address_1"=>nil, "address_2"=>nil, "longitude"=>nil, "address_3"=>nil, "address_4"=>nil}> >> a.country_id = 1 => 1 >> a.country.name => "Canada" >> a.province_id = 1 => 1 >> a.full_address => ",,Alberta,Canada" but when...