you can store your model data in a session and then retrieve it when
loading the next form
Mike
On 2/15/07, Rm Rm
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> Hi,
>
> 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 :
>
> @merchant =Merchant.new(@params[''merchant''])
>
> Now how do I pass this @merchant, so that all the fields on form B for
> merchant are prefilled?
>
> Thanks.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---