title: :confirm and :method not working in rails button_to
body: <p>i am having a problem with my rails 3 app<br /></p>
  
  <p><b>In my view i have</b><br /></p>
  
  <pre><code>&lt;%= button_to("Accept Post", {}, {:confirm =&gt; "Are you sure?", :method =&gt; :accept_question, :remote =&gt; true}) %&gt;
  </code></pre>
  
  <p><b>The generated html is</b><br /></p>
  
  <pre><code>&lt;form method="post" action="/questions/show/1" data-remote="true" class="button_to"&gt;
      &lt;div&gt;
          &lt;input data-confirm="Are you sure?" type="submit" value="Accept Post" /&gt;
          &lt;input name="authenticity_token" type="hidden" value="Rv1CbqkE+61Fn4wb836eOENjyGkNpzzRrwMTywLZPf0=" /&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><b>my gem file is loading this</b><br /></p>
  
  <pre><code>gem 'jquery-rails'
  </code></pre>
  
  <p><b>The following .js files are appearing in the generated html</b><br /></p>
  
  <pre><code>&lt;script src="/javascripts/jquery.js?1309961714" type="text/javascript"&gt;&lt;/script&gt; 
  &lt;script src="/javascripts/jquery-ui.js?1309961714" type="text/javascript"&gt;&lt;/script&gt; 
  &lt;script src="/javascripts/jquery-ui.min.js?1305044364" type="text/javascript"&gt;&lt;/script&gt; 
  &lt;script src="/javascripts/jquery.min.js?1309961714" type="text/javascript"&gt;&lt;/script&gt; 
  &lt;script src="/javascripts/jquery.tools.min.js?1309338309" type="text/javascript"&gt; &lt;/scipt&gt;
  &lt;script src="/javascripts/rails.js?1309961714" type="text/javascript"&gt;&lt;/script&gt; 
  &lt;script src="/javascripts/application.js?1309424326" type="text/javascript"&gt;&lt;/script&gt; 
  </code></pre>
  
  <p>I have seen other posts on this topic, but nothing works, i get no error, just a redirect to the same page, without being prompted. I have other bits of code that use jquery, which work fine. <b>the problem i have is that the confirm and method does not prompt be before continuing. What is a good way to implement jquery into an app, i have tried to include jrails, however all my other code breaks</b> thanks for the help</p>