Add this onsubmit
function to your form helper
<%= form_for(... , html: {:onsubmit => "return confirm('Are you sure?');" }) do |f| %>
If you have jQuery
and want to do it un-obstructively, you can do inside of document ready
$('#my-form').submit(function() {
return confirm('Are you sure?');
})