Detect in rails if user refreshes the page
I am using rails 3.0 and ruby ββ1.8.7
How to determine if a user is refreshing a browser page?
I am coding a webmaster form so I proceed to the next step if everything is correct. However, if the user refreshes the page, I don't want to go to the next step.
Refresh
I put a hidden field (I know about the session solution) that gets updated when the user submits the form. My problem is that the form has many steps.
Any idea? Sorry Thank you in advance
+3
source to share
2 answers