Forum: Ruby on Rails Wizard like data entry

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
57c6a3276ed9cbb3b271e5dd067f0724?d=identicon&s=25 Indu R Nair (indu)
on 2009-04-06 08:30
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), however it doesnt seam
like it addresses the issue mentioned above.
Pls help by giving suggestions for the above mentioned problem .
Thanks in advance.
A93363196f047ab4a7c4dab02e90091d?d=identicon&s=25 glennswest (Guest)
on 2009-04-06 09:32
(Received via mailing list)
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
128082de86cff466b5ed32a22933a1cf?d=identicon&s=25 charan (Guest)
on 2009-04-15 14:22
(Received via mailing list)
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

mallu_charan@yahoo.com
This topic is locked and can not be replied to.