search for: checkout_shipto

Displaying 1 result from an estimated 1 matches for "checkout_shipto".

2005 Dec 30
1
simple one-to-one relationship question
...%= text_field ''order'', ''email'' %> However when the following action gets submitted, my order object gets saved without any problems, but it never saves my Address object. I would expect that the statement @order.save would also save my Address object. def checkout_shipto if request.get? @order = Order.new @address = Address.new @order.address = @address else @order = Order.new(params[:order]) @address = Address.new(params[:address]) @order.address = @address if @order.save...