title: How to use :confirm with button_to and :method :put?
body: <p>I have some destructive action to be performed, so I think it's Rails way to put such actions behind a PUT or POST (so link_to doesn't work because it only GETs).</p>
  
  <p>I added a button like this:</p>
  
  <pre><code>&lt;%= button_to "Acknowledge", ack_something_path, :method =&gt; :put, :confirm =&gt; "Sure?" %&gt;
  </code></pre>
  
  <p>The button works (calls the correct action), but, I can't get Rails to show a "confirm" dialog box.</p>
  
  <p>Any ideas how to do that ?</p>
  
  <p><strong>UPDATE (PROBLEM SOLVED)</strong> </p>
  
  <p>I didn't mention that I was including jquery as well as prototype in <code>HEAD</code> (didn't think it would matter). BUT, <em>when I removed jquery</em>, the confirmation dialog was displayed.</p>
  
  <p>Don't know why this happens, but problem is solved (for now anyway). jquery and prototype do not like to work together it seems.</p>