# Multi Step Registration

**URL:** <https://www.ruby-forum.com/t/multi-step-registration/114059>\
**Category:** Rails\
**Created:** [September 7, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/multi-step-registration/114059 "2007-09-07T13:08:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 7, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/multi-step-registration/114059/1 "2007-09-07T13:08:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 7, 2007, 5:53pm UTC](https://www.ruby-forum.com/t/multi-step-registration/114059/2 "2007-09-07T17:53:27Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 11, 2007, 9:42am UTC](https://www.ruby-forum.com/t/multi-step-registration/114059/3 "2007-09-11T09:42:47Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 11, 2007, 9:55am UTC](https://www.ruby-forum.com/t/multi-step-registration/114059/4 "2007-09-11T09:55:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 12, 2007, 8:39am UTC](https://www.ruby-forum.com/t/multi-step-registration/114059/5 "2007-09-12T08:39:17Z")

</div>

Hi Jamal

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

On Sep 11, 12:55 pm, Jamal S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 12, 2007, 8:45am UTC](https://www.ruby-forum.com/t/multi-step-registration/114059/6 "2007-09-12T08:45:18Z")

</div>

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

Christian…

---

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 12, 2007, 12:39pm UTC](https://www.ruby-forum.com/t/multi-step-registration/114059/7 "2007-09-12T12:39:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 12, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/multi-step-registration/114059/8 "2007-09-12T13:13:13Z")

</div>

Hi Anand,

Can you share the solution you implemented?

---

<div class="post-metadata">

**Author:** ![Anand\_duhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Post date:** [September 12, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/multi-step-registration/114059/9 "2007-09-12T14:50:04Z")

</div>

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.
