How to pass model data from one form to next



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?



you can store your model data in a session and then retrieve it when
loading the next form