search for: is_shipping

Displaying 2 results from an estimated 2 matches for "is_shipping".

2006 Jun 01
4
how can I control when to commit a transaction?
hello it seems like this question has appeared a few times with no answer: how do you get rails to issue ''write'' statements (ie ''CREATE/UPDATE'') to the database without committing each time? I tried setting ActiveRecord::Base.connection.begin_db_transaction before calling any action on my object, but as soon as myObject.save or myObject.update is called,
2007 Nov 20
2
confirming that a model instance was correctly created from POST params
...36 @order.save! 37 end 38 OrderAddress.transaction do 39 # Addresses 40 @billing_address = @order_user.order_addresses.create(params[:billing_address]) 41 @billing_address.order_id = @order.id 42 @billing_address.is_shipping = true 43 @billing_address.save! 44 if @use_separate_shipping_address then 45 @shipping_address = @order_user.order_addresses.create(params[:shipping_address]) 46 @shipping_address.is_shipping = true 47 @billing_address.is_shipp...