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


On Apr 6, 2:30 pm, Indu RS <rails-mailing-l...@andreas-s.net> wrote:
> 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.
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to