title: Rails: link_to with block and GET params?
body: <p>How can I achieve query string and URL parameters in a <code>link_to</code> block declaration? Right now, I have this, which works:</p>
  
  <pre><code>&lt;%= link_to 'Edit', :edit, :type =&gt; 'book', :id =&gt; book %&gt;
  </code></pre>
  
  <p>The above works, and outputs:</p>
  
  <pre><code>http://localhost:3000/books/edit/1?type=book
  </code></pre>
  
  <p>What I want to do is something like this:</p>
  
  <pre><code>&lt;% link_to :edit, :type =&gt; 'book', :id =&gt; book do %&gt;
      ...
  &lt;% end %&gt;
  </code></pre>
  
  <p>But the above format outputs:</p>
  
  <pre><code>http://localhost:3000/books/edit/
  </code></pre>
  
  <p>Which isn't what I'm looking for... I want it to output a URL like the previous example. </p>
  
  <p>How can I achieve this?</p>