I am trying to delete a post using the code below:
<%= link_to \'Destroy\', post, :method => :delete, :onclick => \"return confirm(\'Are you sure you wa
You must be add
//= require jquery //= require jquery_ujs
in javascripts/application.js file
second, check in layout file,
javascript_include_tag "application"
is include or not?
Hope this help.