title: rails, adding a parameter to new route
body: <p>The <code>new</code> action normally doesn't require parameters, since it creates a new resource from scratch. 
  In my application whenever i create a certain type of resource say a <code>book</code> i need to provide a template, that is the id of another <code>book</code>. So my <code>new</code> route always has a parameter. 
  I don't know how to represent this fact into <code>routes.rb</code> file. <br/></p>
  
  <p>Since i don't even know whether it is feasible, just in the case it isn't, then i will create a new_wp, a "new with parameter" action. <br/>
  I tried to add it to my </p>
  
  <pre><code>resources :books, :only =&gt; [:edit, :update, :show, :new] do
  
    member do
      get 'new_wp/:template_id', :action =&gt; 'new_wp'
    end
  
  end
  </code></pre>
  
  <p>but rake routes say that it isn't quite what i want:</p>
  
  <pre><code>GET        /books/:id/new_wp/:template_id(.:format)   books#new_wp
  </code></pre>
  
  <p>that is, it has two params.</p>