Multi Step Registration

Hi There

    Can any one tell how to use multi form code available at below

URL:-

        http://snippets.dzone.com/posts/show/277

    Any help will be appreciated

Thanks Andy

Anand duhan wrote:

Hi There

    Can any one tell how to use multi form code available at below

URL:-

        http://snippets.dzone.com/posts/show/277

    Any help will be appreciated

Thanks Andy

You don’t need exactly do as he does.

You can do it just as you normally create a form, and then you just
redirect the user from one to another, and you save the information into
session, and in the end of your multiform save the information :slight_smile:

But Jamal I have to apply validation on each step of form and each
step contains data to save in more than one table .
So multi model save is required.So can u suggest how to apply a multi
model validation on each step.

Thanx in advance

On Sep 7, 8:53 pm, Jamal S. [email protected]

hmm, did you try to look at the documentation to see if you can validate
without having to save into the database?

Hi Jamal

Thanx for suggestion.Problem is solved out for the moment.

On Sep 11, 12:55 pm, Jamal S. [email protected]

You could also just save to the database, but have a extra column at
the end with a “Registration Complete” boolean value?

Christian…

Christian Wattengård wrote:

You could also just save to the database, but have a extra column at
the end with a “Registration Complete” boolean value?

Christian…

This would just create unnecessary rows in table.

Hi Anand,

Can you share the solution you implemented?

I have seen the same problem in a big project I have worked on for the
past 7 months. We also saved intermediate information from the forms (it
is s three step signup process) in sessions. For validation we just
wrote our own validation code and completely disregarded the built-in
rails validation.