Rails 4 link_to Destroy not working in Getting Started tutorial

Try this

<%= link_to 'Destroy',  post,  method: :delete, data: { confirm: 'Are you sure?' } %>

Leave a Comment