title: Delete / Destroy is not working in rails 3 with jQuery
body: <p>My delete/destroy is not working for Rails 3.</p>
  
  <p>Not for any scaffold or even for new projects.</p>
  
  <pre><code>&lt;%= link_to 'Destroy', card, :confirm =&gt; 'Are you sure?', :method =&gt; :delete %&gt; 
  </code></pre>
  
  <p>From <a href="https://stackoverflow.com/questions/635219/delete-destroy-method-doesnt-work-anymore-rails">this question</a>. Solution is Firefox reinstalation. But mine is also not working in chrome, safari or opera.</p>
  
  <p>Html code generated:--</p>
  
  <pre><code> &lt;a href="/categories/1" data-confirm="Are you sure?" data-method="delete" rel="nofollow"&gt;Destroy&lt;/a&gt;
  </code></pre>
  
  <p>PS: Please don't say include default JS files or something. Because I am not interested in prototype all together, as I am using jQuery.</p>
  
  <p><strong>EDIT/Update, Important:</strong> this is the solution when you don't want to use prototype at all. I am using only jQuery and respective plugins in my project.</p>
  
  <p>People are answering: First include prototype etc and then install some gem etc to remove conflicts between prototype and jQuery. That's rubbish. </p>
  
  <p>I have posted an answer. Please check that once before you go for the option. Worked for me for more than 10 projects without any issues. All you need to do is: </p>
  
  <p>Remove all the js files from your javascript directory except application.js. Then Paste the code i specified in my answer in a new file and include that file. Include Jquery.js and then you are all set. You don't need to add default javascript (ie: prototype) or some other gem to remove conflicts etc.</p>