title: Extract params fro url in rails
body: <p>From the url below how can I extract the value 1? </p>
  
  <pre><code>`http://localhost:3000/category/products/1`
  </code></pre>
  
  <p>I tried params[:id] and params[:products][:id] but got nothing.</p>