title: Ruby on Rails: Use slug instead of id on resource routes
body: <p>So I'm looking for a solution that would help me achieve the following with Rails resource:</p>
  
  <pre><code>/admin/articles/:slug/edit
  </code></pre>
  
  <p>as opposed to </p>
  
  <pre><code>/admin/articles/:id/edit
  </code></pre>
  
  <p>I'm looking for Rails <a href="http://guides.rubyonrails.org/routing.html#controller-namespaces-and-routing" rel="noreferrer">resource routes</a> and not the other kinds of routes.</p>
  
  <p>Just wanted to know if it was possible. If so, how? </p>