I am currently developing a rails application where I use remote (AJAX) calls to submit forms. But the forms got submitted twice and thus I had duplicate entries in my database.
I studied the following resources:
For me, it turned out, the solution was as simple as clearing the entire public/assets-directory:
rm -r public/assets/.