title: Rails link_to action with URL parameters
body: <p>If I have a route like so</p>
  
  <pre><code>get 'controller/:id/action/:param' =&gt; 'Controller#action'
  </code></pre>
  
  <p>How can I use <code>link_to</code> to create a link like <code>&lt;a href="/controller/12345/action/abcde"&gt;</code>?</p>
  
  <p>So far I have gotten <code>link_to 'Link text', {:action =&gt; 'action'}</code></p>
  
  <p>To give me <code>&lt;a href="/controller/12345/action"&gt;</code></p>
  
  <p>but using <code>link_to 'Link text', {:action =&gt; 'action', :param =&gt; 'abcde'}</code></p>
  
  <p>will give me <code>&lt;a href="/controller/12345/action?param=abcde"&gt;</code></p>