Consecutive post? if statments form(s) processing error

Sam Woodard wrote:

In the flow of my application, the user is taken from one page where
they register to another page containing a second form where they submit
more information for their contact record. I am having two problems:

It might be better if you separate your actions in to GET and POST operations.
Then the sequence of flow may look like:

/method1 - display form 1
/method1_post - save @user and redirect_to /method2
/method2 - display form 2
/method2_post - save @address and redirect_to /method3
/method3 - display whatever

Validation can occur in _post actions and redirect :back if validation fails.

HTH,

Long
www.edgesoft.ca/blog/read/2