Hey all, well I have a delete function in my rails application that
works successfully. When I click the button it deletes the record from
the page as well as the database, my problem is that I don’t want it to
instantaneously do this, I want it to give the user the option to cancel
before hand. How would I do this. My code for the button is as followed:
<%= f.submit %>
<%= button_to ‘Destroy’, root_url, :confirm => ‘Sure?’, :method =>
Anything I am missing?