Simple question – I have a form where I create an instance of an object. After I create that object (aka submit the form), I want to redirect to a new form that is associated with a different controller’s action and carry that instance variable to populate some of that form’s fields.
I know I typically have 2 options, store that instance variable in the session or pass it via params. I can’t use sessions (for a variety of reasons I won’t bore you with). The params option I am confused on.
I should know this. 🙁 How would you go about doing this? Any examples greatly appreciated!!
Betsy
You’ll have two methods on your controller. One for each form (rendered by the associated template). The first form should post to the second action. The second action can then transfer the request parameters into instance variables, to be available within the second template.
UPDATE0 Do it across two controllers using session.