Forum: Ruby on Rails How to pass model data from one form to next

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.
Ffb15a8418eb7f49060b6764aba1dc52?d=identicon&s=25 Rm Rm (rmehta)
on 2007-02-15 21:59

In my form A I accept data for 2 models. After validation if everything
is fine, then I accept rest of the data in form B. Now how can I pass
the data from A to B for display. One way is that I pass all the
individual field data as parameters with redirect. Is there any way I
can pass the whole model which I created as :


Now how do I pass this @merchant, so that all the fields on form B for
merchant are prefilled?

0900e6a4828bd989f96427082c6c74ca?d=identicon&s=25 Mike Garey (random52k)
on 2007-02-16 01:57
(Received via mailing list)
you can store your model data in a session and then retrieve it when
loading the next form

This topic is locked and can not be replied to.