I have a link_to like this:
<%= link_to 'X', category, :confirm => 'Are you sure?', :method => :delete %>
So, I change it like this:
<%=link_to_remote category.name,
:confirm => 'Are you sure?', :method => :delete%>
it show the confirm box, but after I click "yes", it won't delete the item I want , why?