title: link_to confirm not working with controller/action
body: <p>UPDATE - I just checked and NEITHER confirm is working. </p>
  
  <p>I need to have a confirm on a link_to. I've tried a couple of variations on the data/confirm attribute but it is bypassing the confirm dialog. </p>
  
  <p>My link is </p>
  
  <pre><code> &lt;%= link_to 'new bs line', 
     :controller =&gt; :bedsheet_lines, 
     :action =&gt; :create_new_bedsheet_line,  
     :data =&gt; {:confirm =&gt; 'Are you sure that you want to export the Bedsheets?'} %&gt; &lt;br&gt;
  </code></pre>
  
  <p>That does not work, <strike>but a regular link_to does:</strike> and neither does this</p>
  
  <pre><code>  &lt;%= link_to "Export Data as a CSV file ", 
        slitter_bedsheet_export_path(format: "csv"), 
        :data =&gt; {:confirm =&gt; 'Are you sure that you want to export the Bedsheets?'} %&gt; &lt;br&gt;
  </code></pre>
  
  <p>If I do an inspect, the link that won't show the confirm looks like</p>
  
  <pre><code>  &lt;a href="/bedsheet_lines/new_bedsheet_line?
     data%5Bconfirm%5D=Are+you+sure+that+you+want+to+export+the+Bedsheets%3F"&gt;
    new bs line&lt;/a&gt; &lt;br&gt;
  </code></pre>
  
  <p><strike>Whereas the link that does show a confirm looks like </strike> Nor dies this work. </p>
  
  <pre><code>  &lt;a data-confirm="Are you sure that you want to export the Bedsheets?" 
     href="/csv_export.csv"&gt;Export Data as a CSV file &lt;/a&gt; &lt;br&gt;
  </code></pre>
  
  <p>My suspicion is that the problem is that confirm will not work when your link_to specifies and action and controller. If that is true, I should be able to find a way to work around that.  Now I'm not sure where my problem lies. </p>