title: params to find by name instead of id
body: <p>I want the url structure to be 'actors/joe-blogs' instead of 'actors/1' but with the id out of the url I cant get params to find by name instead of find by id.</p>
  
  <p>I have the following route</p>
  
  <pre><code>get 'actors/:name' =&gt; 'actors#show'
  </code></pre>
  
  <p>actors table</p>
  
  <pre><code>| id |   name    |
  ------------------
  | 1  | Joe Blogs |
  </code></pre>
  
  <p>The url /actors/joe-blogs works fine but finding params by name instead of id doesn't work.</p>
  
  <p>actors controller:</p>
  
  <pre><code>    def show
         @actor = Actor.find(params[:name])
      end
  </code></pre>
  
  <p>Finding by params name looks for the actor with <code>{"name"=&gt;"joe-blogs"}</code>  instead of looking for the actor with <code>{"name"=&gt;"Joe Blogs"}</code></p>
  
  <p>How can I get params to work so it grabs <code>{"name"=&gt;"Joe Blogs"}</code>? without the '-' in-between the name?</p>