# ActiveRecord in memory only object for wizard?

**URL:** <https://www.ruby-forum.com/t/activerecord-in-memory-only-object-for-wizard/152432>\
**Category:** Rails\
**Created:** [November 3, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/activerecord-in-memory-only-object-for-wizard/152432 "2008-11-03T22:02:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hangingclowns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Post date:** [November 3, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/activerecord-in-memory-only-object-for-wizard/152432/1 "2008-11-03T22:02:50Z")

</div>

I have a wizard with multiple screens where I essentially populate an  
ActiveRecord object. However I DO NOT want to save it to the database  
until the last screen and the user clicks save. Meanwhile though, I want  
to get access to the object at anytime via the wizard.

So should I simply create the ActiveRecord with the method “new” and  
push it into the session like:

session[:object] = my\_activerecord\_object ?

thanks
