Chris Richards
2006-Apr-28 09:55 UTC
[Rails] @model.update_attributes(params[:model]) without saving?
Is it possible to update the parameters from a form without saving? @model.update_attributes(params[:model]) will save the model after updating its attributes. I''d just like the attributes updating without a save. Thanks Chris -- Posted via http://www.ruby-forum.com/.
Mark Reginald James
2006-Apr-28 12:33 UTC
[Rails] Re: @model.update_attributes(params[:model]) without saving?
Chris Richards wrote:> Is it possible to update the parameters from a form without saving? > > @model.update_attributes(params[:model]) will save the model after > updating its attributes. I''d just like the attributes updating without > a save.@model.attributes = params[:model] -- We develop, watch us RoR, in numbers too big to ignore.