title: rails: making link_to method send remote request as JSON type, not JS type
body: <p>I have a link_to method that seems that gets interpreted as JS,
  whereas I want it to be JSON.</p>
  
  <p>This,</p>
  
  <pre><code>&lt;%= link_to("Destroy", tour_event_path(tour, result), :id =&gt; 'delete_event', :remote =&gt; true, :method =&gt; :delete, :html =&gt; {:'data-type' =&gt; 'json'} )%&gt;
  </code></pre>
  
  <p>Results in</p>
  
  <pre><code>Processing by EventsController#destroy as JS
  </code></pre>
  
  <p>What I want is</p>
  
  <pre><code>Processing by EventsController#destroy as JSON
  </code></pre>
  
  <p>I added a <code>, :html =&gt; {:'data-type' =&gt; 'json'}</code> as mentioned in another SO answer, but no luck.</p>
  
  <p>I'm on rails 4. Any ideas?</p>