add method to link in rails to delete code example
Example: rails delete link
<%= link_to "Delete", person, method: :delete, data: { confirm: "Really?" } %>
<%= link_to "Delete", person, method: :delete, data: { confirm: "Really?" } %>