I use Ruby on Rails 2.3.8, and I have a registration form in which I get the parameter as follows: /registration/4 , which 4 is the identifier of the user who recommended the user who is going to register on the website.
The problem is that if the check fails when the user submits the registration (the form is displayed on the users controller, the create_particular action), the site is redirected to /users/create_particular , and therefore I lose the parameter with the value 4, which I had before. Also, I want the user to stay at the same URL as /registration/4
How can i do this?
source share