Forum: Ruby on Rails @model.update_attributes(params[:model]) without saving?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chris R. (Guest)
on 2006-04-28 13:52
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
Mark Reginald J. (Guest)
on 2006-04-28 16:36
(Received via mailing list)
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 topic is locked and can not be replied to.