title: Why confirm option of rails button_to helper is not working
body: <p>I have a rail button_to where I want it to show a confirm dialog box before proceeding. </p>
  
  <pre><code>&lt;%= button_to("Rebuild indexes", action: "rebuild_indexes", data:
  {confirm: "Are you sure you want to reset the indexes?" }) %&gt;
  </code></pre>
  
  <p>The actions are occurring but I'm not getting a confirmation box. I read that the problem could be related to javascript. I thought I had that enabled. </p>
  
  <pre><code>application.js
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
  // about supported directives.
  //
  //= require jquery
  //= require jquery_ujs
  //= require jquery.turbolinks
  //= require turbolinks
  //= require tinymce-jquery
  //= require ckeditor/init
  //= require ckeditor/config.js
  //= require jquery.are-you-sure
  //= require script
  //= require script.responsive
  //= require_tree .
  </code></pre>
  
  <p>If I do an inspect on the button, I see</p>
  
  <pre><code>&lt;form class="button_to" method="post" action="/help/rebuild_indexes?data%5Bconfirm%5D=Are+you+sure+you+want+to+reset+the+indexes%3F"&gt;
    &lt;input type="submit" value="Rebuild indexes"&gt;
    &lt;input type="hidden" name="authenticity_token" value="3mnAMmyHaINiDngjQn87EMmhmetp2VJcX+lwcmbUlhwBfv7V1hpLc9ZY1OF5JAFm9erFJjX+qyDz35/KK41jaA=="&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>What am I missing in getting a confirmation box to appear? </p>