i’ve got a site, which has a login system.
here’s my scenario:
- user is not logged in
- fills in a form to submit data
- before the create action, i check if the user is logged in.
- if the user is not logged in, they are prompted to sign up and log in..
- upon sign up / login the form is submitted and the form data saved without prompting the user to save it again.
In order to do this, I need to use a redirect_to, specify the controller and action, however, this requires a POST, and I don’t believe you can post variables on a redirect.
any ideas of a work around, which would keep the current user flow?
Some options you might want to try: