title: Custom routes with rails 3.1
body: <p>I'm trying to get my application to show the url as follows: <strong>example.com/42/jessica-alba</strong>
  This is my current routes line(not sure if it's correct)</p>
  
  <pre><code>match '/:id/:name' =&gt; 'models#show'    
  </code></pre>
  
  <p>For some reason if I type example.com/42/gvkodjgj030 it'll still shw me the user with the id 42, regardless of the text after the / </p>
  
  <p>Another thing I'm trying to accomplish is to get the link_to tags of the user to point to <strong>example.com/42/jessica-alba</strong> instead of <strong>example.com/users/42</strong></p>
  
  <p>Please help me out guys, this is my first rails app :)</p>
  
  <p>*<strong><em>EDIT</strong>: the first part is actually working with the snippet I've pasted, I still need to fix the 2nd part though.</em></p>