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.
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
source to share