title: Ruby on Rails Passing Parameter In URL
body: <p>This is probably a very simple fix but I've been unable to find an answer just yet.</p>
  
  <p>My application has orders and tasks. Orders have many tasks. When a user clicks new task in the show order view, it passes the order.id:</p>
  
  <pre><code>&lt;%= link_to "New Task", new_task_path(:order_id=&gt; @order.id) %&gt;
  </code></pre>
  
  <p>The url shows:</p>
  
  <pre><code>/tasks/new?order_id=1
  </code></pre>
  
  <p>I just don't know how to extract this and use it in my form? I have tried:</p>
  
  <pre><code>&lt;%= f.text_field :order_id, :value =&gt; @order_id %&gt;
  </code></pre>
  
  <p>But it's not working.</p>