Pretty standard stuff:
1. User fills out form
2. User submits form
3. User thinks "doh! an error!"
4. User hits the browser back button
5. User updates the data in the form
6. User *thinks* he is updating the data by hitting submit again, but
inserts another record.
Now we have two records in the database, one is the correct one, and one
is the bad one. How do we know witch one is the good one? The second
one! I hear you all scream. But does that mean we should delete the
first one? How do you deal with this situation?
I think it is quite obvious what the user intended to do, and we should,
in our webapp, do what the user wanted to do, not annoy him with stupid
error messages like "Sorry, you can't submit the same form twice", or
"Sorry, a record with this ID already exists in our database"
Is there a nice solution in rails to this very frequent problem in web