title: how to get ID back from a URL in rails
body: <p>I have a URL like below</p>
  
  <pre><code>/pages/edit_product/11
  </code></pre>
  
  <p>In my action <code>edit_product</code> how can I get the id 11 So that I can do @p = <code>Product.find_by_id(11)</code></p>