Displaying 3 results from an estimated 3 matches for "billing_st".
2006 Jan 03
5
update command not updating DB
...redirect_to(:action => ''edit'', :id => @user.id)
end
end
======
if I set up a template for update and inspect both @user and
params[:user] this is what I get, in that same order:
======
#"test s address", "shipping_state"=>"te", "billing_street"=>"16409",
"billing_city"=>"test", "website"=>"www.test.com",
"shipping_country"=>"test", "shipping_zip"=>"test", "id"=>"51",
"shipping_city"=>&qu...
2009 Feb 26
1
composed_of, aggregate object isn't saved
...eet, street),
%w(street2, street2),
%w(city, city),
%w(state, state),
%w(zip, zip)
] do |p|
Address.new p[:street], p[:street2], p[:city], p[:state], p[:zip]
end
composed_of :billing_address,
:class_name => ''Address'',
:mapping =>
[
%w(billing_street, street),
%w(billing_street2, street2),
%w(billing_city, city),
%w(billing_state, state),
%w(billing_zip, zip)
] do |p|
Address.new p[:street], p[:street2], p[:city], p[:state], p[:zip]
end
...
end
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~---...
2006 Sep 05
0
rake craziness with Migrate as a dependency
...dd_column(:users, "billing_address2", :string, {:default=>"",
:limit=>150, :null=>false})
-> 0.1700s
-- add_column(:users, "billing_city", :string, {:default=>"",
:limit=>150, :null=>false})
-> 0.2100s
-- add_column(:users, "billing_state", :string, {:default=>"",
:limit=>150, :null=>false})
-> 0.2110s
-- add_column(:users, "billing_zip", :string, {:default=>"",
:limit=>150, :null=>false})
-> 0.2100s
-- add_column(:users, "shipping_title", :string, {:defau...