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.
Rm R. (Guest)
on 2007-02-15 22: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?

Mike G. (Guest)
on 2007-02-16 02: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.