This tag with rails 3
<%= link_to \'Destroy\', item, :method => :delete,:confirm=>\'Are you sure?\' %>
produces this html
Great answers here,
But if you did everything and still get those double popups, and if you are running in development mode, check if you have public/assets
loaded with compiled assets.
Deleting public/assets/*
solves the issue.
In my case (Rails 3.2.13), I had to delete rails.js to fix the same problem.
I did not explicitly reference rails.js, nor did changing config.assets.debug help.
just remove the turbolinks, that worked for me in rails4
So for me it was because i had defined data-remote instead of just remote.
IE
data: { remote: true, ... }
instead of
remote: true, data: { ... }
hope that helps.