This tag with rails 3
<%= link_to \'Destroy\', item, :method => :delete,:confirm=>\'Are you sure?\' %>
produces this html
I've had the same problem with Rails 3.2.12, but simply updating to 3.2.13 solved that problem for me.