Topic: Product Tutorial- error

I am a beginner and started with Ruby on Rails just a week back. I was able to create my product web application but was unsuccessful to debug it.

<td class="list-actions">
        <%= link_to 'Show', product %><br/>
        <%= link_to 'Edit', edit_product_path(product) %><br/>
        <%= link_to 'Destroy', product,
                    :confirm => 'Are you sure?',
                    :method => :delete %>


this is the code for the destroy button. but when I click it, it shows me the details rather than a 'Are you sure' message

please help

Last edited by a1aks (2011-05-30 12:56:13)