Displaying 1 result from an estimated 1 matches for "delivery_loact".
2007 Mar 26
5
Session trouble
I am having a problem with an assignment to an object stored in session.
for example when I am in console
o = NewOrder.new
# dl = DeliveryLocation.new
# o.delivery_location = dl #=> returns a delivery location object
# o.delivery_loaction.save #=> returns true
when I am using the controller
delivery_location = DeliveryLocation.new(params[:delivery_location])
session[:order].delivery_location = delivery_location
session[:order].delivery_location.save
When it gets to session[:order].delivery_location = delivery_location I
get...