I have the following link next to one of my products:
<%= link_to("Delete", {:action => 'destroy', :id => product.id}, :class => 'action', :confirm => 'Are you sure?') %>
but when I click it, the confirmation box does not appear.
The generated HTML is:
<a data-confirm="Are you sure ?" class="action" href="/products/destroy/48">Delete</a>
Please advise.