small medium large xlarge

29 Dec 2010, 14:03
xideveloper (2 posts)

In the last part of chapter 6, we add the css style to the products page, and we modified the ../views/products/index.html.erb in which we have the ‘Destroy’ link like following:


<%= link_to ‘Destroy’, product, :confirm => ‘Are you sure?’, :method => :delete %>


The book says when I click this ‘Destroy’ from browser, a pop up window will ask you are you sure to delete. But, my click on the link navigates me to the show page which is the same as I click ‘Show’ link. Why??? What cause this??

You must be logged in to comment