I am currently deleting a record using the following:
<%= link_to "Delete", user_path(user), data: { confirm: "Are you sure?"}, method: :delete %>
I was wondering how would I go about using a modal to confirm the deletion?
I want to display a modal (bootstrap), and then have an input box that forces the user to type in the word 'DELETE'. After hitting submit, it then actually deletes the record.
How would I do that?