# Do changes on 'temporary' record - save back to table when finished

**URL:** <https://www.ruby-forum.com/t/do-changes-on-temporary-record-save-back-to-table-when-finished/121568>\
**Category:** Rails\
**Created:** [November 28, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/do-changes-on-temporary-record-save-back-to-table-when-finished/121568 "2007-11-28T23:28:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![harryv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/4af34b/32.png) [@harryv](https://www.ruby-forum.com/u/harryv)\
**Post date:** [November 28, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/do-changes-on-temporary-record-save-back-to-table-when-finished/121568/1 "2007-11-28T23:28:25Z")

</div>

Hello

I am doing an app, where the user can edit a ‘Story’. Each story  
contains a number of Sections (that in return contains a number of  
Routes each, whatsoever). Using AJAX the user can can choose to edit a  
Story, and within the same page edit, add and remove Sections. That is  
no problem at all, except: None of the changes the user does, should  
actually be saved into the database before he chooses to, by clicking  
a link or whatsoever. So even though the given Story is being added  
and Sections being added/removed/etc, the database should still hold  
the old values.

Any ideas how I could do this?

Regards, Harry

---

<div class="post-metadata">

**Author:** ![harryv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/4af34b/32.png) [@harryv](https://www.ruby-forum.com/u/harryv)\
**Post date:** [November 28, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/do-changes-on-temporary-record-save-back-to-table-when-finished/121568/2 "2007-11-28T23:30:10Z")

</div>

On Nov 28, 2007 4:27 PM, harryv [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Any ideas how I could do this?  
> You might try acts\_as\_versioned.

[http://wiki.rubyonrails.org/rails/pages/ActsAsVersioned](http://wiki.rubyonrails.org/rails/pages/ActsAsVersioned)

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)
