title: Rails 3 passing parameter to new method
body: <p>Okay, am going nuts trying to get this to work. I want to pass information I need to the new action and it ain't working. I am in a view and using <strong>link_to</strong> with a path to create a new record:</p>
  
  <pre><code>&lt;%= link_to "New", new_libation_path(:xid=&gt; 123) %&gt;
  </code></pre>
  
  <p>My routes table has:  <strong>resources :libations</strong></p>
  
  <p>And in the libation_controller I have my new action...</p>
  
  <pre><code>def new
    puts params[:xid]    #This is nil!
    ...
  </code></pre>
  
  <p>What am I doing wrong? Maybe I should google how to use params in rails..</p>