@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

Chris R. 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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs