title: How to handle routing related to "required" parameters?
body: <p>I am using Rails 3.1.0 and I would like to "require" a parameter-string in a router-URL the <em>proper</em> way. That is, I have a <code>token</code> parameter that <em>must</em> be checked on performing a HTTP POST request so to update user information:</p>
  
  <pre><code>my_site_name/user/1?token=12345abcdr
  </code></pre>
  
  <p>I am planning to add a constrain in the <code>router.rb</code> file so to "require" that <code>token</code>. <strong>Is it advisable? Should I proceed like that? If so, how can I state the related router?</strong></p>
  
  <hr>
  
  <p>Maybe I could state/use a "named router" passing two parameters this way:</p>
  
  <pre><code>confirm_user_url(@user, token)
  </code></pre>