search for: order_user_id

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

2007 Nov 20
2
confirming that a model instance was correctly created from POST params
...order_id = @order.id 50 @shipping_address.save! 51 end 52 end 53 OrderAccount.transaction do 54 @order_account = OrderAccount.new(params[:order_account]) 55 @order_account.order_id = @order.id 56 @order_account.order_user_id = @order_user.id 57 @order_account.order_address_id = @billing_address.id 58 @order_account.save! 59 end 60 end 61 end I am adding to the OrderAddress model the concept of whether an address is a business address (as opposed to a home/residentia...
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,