Forum: Ruby on Rails ActiveRecord in memory only object for wizard?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Allen W. (Guest)
on 2008-11-03 23:02
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 ?

This topic is locked and can not be replied to.