I'm trying to make this be a link to a destroy action for a note :
<%= link_to "delete", @note, :method => :delete, :confirm => "Are you sure" %>
This just routes to the note and doesn't go through to the destroy action... Whereas this:
<%= button_to "delete", @note, :method => :delete, :confirm => "Are you sure" %>
Does route properly. I'm using jQuery 1.7 and I installed the gem 'jquery-rails', '>= 1.0.12' (which includes the jquery_ujs.js file).
What fixes are there to make link_to work properly? For some reason, I have an older app on which these link_to links work, but I can't remember why.. Any pointers?
(I really don't want to use button_to.. this styling is annoying, and I'm sure that there must be a way to do this..)
UPDATE: Using Rails 3.0.9