Carl Brown
3/26/2006 7:24:00 PM
The run logs all look good and the data seems to be pre-set but the SQL
generated has none of the changed data...
This 'doesn't work:
id = session[:customer_id]
@customer = Customer.find( id )
@customer.updates_attributes(params[:customer])
And, this 'does' work:
id = session[:customer_id]
@customer = Customer.find( id )
p = params[:customer]
@customer.first_name = p[:first_name]
@customer.last_name = p[:last_name]
@customer.save
Any ideas? (And, yes, there is an IF around the update_attributes that
indicates all-is-well...)
Thanks!!