Lazy Registration: How to let a guest user start their workflow and prompt registration when they tr

Posted by Brandon Cordell on Stack Overflow See other posts from Stack Overflow or by Brandon Cordell
Published on 2010-05-23T13:19:03Z Indexed on 2010/05/23 19:40 UTC
Read the original article Hit count: 248

I'm wondering what I would do to go about letting a guest use my web application without registering, then if they attempt to save their work they are prompted with a registration. This will be in a rails application by the way. Can I just allow public access to part of the work flow, then when they save check if they're a registered user (by session value, or cookie?). If they aren't a registered user, save all their work into the session and let them fill out a sign out form. On successful registration automatically log them in and initiate the create on the db?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby