title: How to add form parameter in Rails link with PUT method?
body: <p>Right now, I have the following and it works:</p>
  
  <pre><code>&lt;%= link_to 'stop service', service_path(:id =&gt; @service.id, 'service[stopped]' =&gt; true, method: :put, data: { confirm: 'Are you sure?' } %&gt;
  </code></pre>
  
  <p>The link looks like this: <code>http://localhost:3000/services/1?service%5Bstopped%5D=true</code></p>
  
  <p>So the <code>service[stopped]</code> parameter gets submitted to the server as part of the query string. I need it to get submitted though as a POST/PUT form parameter instead. I tried adding <code>'service[stopped]' =&gt; true</code> inside the <code>data</code> hash, but that didn't do anything.</p>