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

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.
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 ?

thanks
This topic is locked and can not be replied to.