title: node.js and expressjs render a template with a URL param
body: <p>Currently a user comes to my register page with an invitation ID</p>
  
  <p>Example: <a href="http://www.mysite.com/user/register/50e203eb4d37bdfd22000042" rel="nofollow">http://www.mysite.com/user/register/50e203eb4d37bdfd22000042</a></p>
  
  <p>The page loads and the form loads etc.... all is great. I then do some back end validation and if validation fails I call the res.render with the messages and the form data:</p>
  
  <pre><code>res.render('user/register', {
      messages: messages 
      , form: form 
  
  });
  </code></pre>
  
  <p>It all works as expected however when the render occurs it puts the user back to: </p>
  
  <p><a href="http://www.mysite.com/user/register" rel="nofollow">http://www.mysite.com/user/register</a>  (its missing the invite_id)</p>
  
  <p>How can I pass along a URL param with the res render? </p>
  
  <p>If I do:</p>
  
  <pre><code>res.render('user/register/50e203eb4d37bdfd22000042', {
      messages: messages 
      , form: form 
  
  });
  </code></pre>
  
  <p>Its actually looking for that 50e203.... file and giving me the 404 not found</p>
  
  <p>Thanks!</p>