From: Carl Brown Date: 2006-03-27T22:53:55+09:00 Subject: Re: update_attributes not saving data On 2006-03-26 14:40:16 -0500, Lindsay Boyd said: >> This 'doesn't work: >> id = session[:customer_id] >> @customer = Customer.find( id ) >> @customer.updates_attributes(params[:customer]) > > Do you have :customer set in the Customer model as attr_accessor? I > recall having a similar problem where specifying attr_accessor for my > attribute resulted in the attribute being updated as NULL - not with > the value I expected. > > Lindsay Oh... Wow -- thanks! That would probably work, too.... I removed the attr_accessor entirely and that resolved the issue. I apparently have no clue how these models work yet... Thanks for the tip! -c