title: Pre-populating a form field from a link
body: <p>I'm trying to pre-populate a string field in a form when a link is clicked. I've tried:</p>
  
  <pre><code>$&lt;%= link_to "New product", new_product_path(:product_name =&gt; "foo") %&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>$&lt;%= link_to "New product", new_product_path(:name =&gt; "foo") %&gt;
  </code></pre>
  
  <p>Both didn't work. Anyone has any idea?</p>