I created a simple scaffold, the problem is that when I try to delete the record, click "drag rails" on the show action, this is the link code generated automatically when I create the scaffold:
<%= link_to 'Destroy', product, :confirm => 'Are you sure?', :method => :delete %>
what's wrong?
source
share