# Wizard like data entry

**URL:** <https://www.ruby-forum.com/t/wizard-like-data-entry/164807>\
**Category:** Rails\
**Created:** [April 6, 2009, 8:30am UTC](https://www.ruby-forum.com/t/wizard-like-data-entry/164807 "2009-04-06T08:30:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![indu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/eada6e/32.png) [@indu](https://www.ruby-forum.com/u/indu)\
**Post date:** [April 6, 2009, 8:30am UTC](https://www.ruby-forum.com/t/wizard-like-data-entry/164807/1 "2009-04-06T08:30:29Z")

</div>

Hello after having searched the forums I couldn’t find any solution to  
this problem:

I want to implement a multi step form across models.

Step 1: Enter requested username/ password/image etc - User model  
Step 2: Enter Employer Job Conditions information - EmployerJobCondition  
model  
Step 3: Enter Canditate Job Conditions information -  
CandidateJobCondition model  
In the third step only I want to store all the informations.

The problem is if a user is created in step 1 and then exits his browser  
during step 2, thus a record in the users table is dangling, no good.Any  
suggestion for wizard like data entry? Ive looked at the Wizard plugin  
([http://github.com/crankin/wizard/tree/master](http://github.com/crankin/wizard/tree/master)), however it doesnt seam  
like it addresses the issue mentioned above.  
Pls help by giving suggestions for the above mentioned problem .  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![indu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/eada6e/32.png) [@indu](https://www.ruby-forum.com/u/indu)\
**Post date:** [April 15, 2009, 2:22pm UTC](https://www.ruby-forum.com/t/wizard-like-data-entry/164807/2 "2009-04-15T14:22:08Z")

</div>

Hi dude

iam quite new to ROR

i have seen ur post in google groups regarding ruby on rails multiple-  
page form…  
even i am stuck in tat…can u pl send me the application or any  
examples related to the issue of Muti-page form

removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![indu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/eada6e/32.png) [@indu](https://www.ruby-forum.com/u/indu)\
**Post date:** [April 6, 2009, 9:32am UTC](https://www.ruby-forum.com/t/wizard-like-data-entry/164807/3 "2009-04-06T09:32:13Z")

</div>

This is a “stateful” type processing, and you can do redirects after  
each submit.  
Also you can keep track of the time of the last state, and then use  
rufus-scheduler to  
run a cleanup task from time to time.

There is also a call in rails to let you redirect on the server, so on  
the submit of step 1,  
you redirect to the beginning of step 2.

You must also thing of the condition where the user stops in the  
middle.

Rails after all is stateless, so your state should be in a table  
somewhere.  
Also depending on your implementation your step 1 etc may actually run  
in a different  
mongrel process if your doing load balancing.

If you need help, drop me a line.

My blog: [http://mentalpagingspace.blogspot.com](http://mentalpagingspace.blogspot.com)
