the easy way is probably to have something like <%= submit_tag "Save", :onclick => "return confirm('Are you sure?')" %>
assuming your form action already points to the place you want to go to on "OK", else you'll have to use more javascript to change the form's action.