title: Ruby on Rails: Showing Member's Name Instead of ID in Show
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3747483/making-a-pretty-url-via-ruby">making a pretty url via ruby</a>  </p>
  </blockquote>
  
  
  
  <p>I have looked around but I can't find an answer.  I am either not asking the right question and/or I am not looking in the right place.</p>
  
  <p>I have the following defined:  </p>
  
  <pre><code>config/routes.rb
  resources :members
  
  members_controller.rb
  def show
  @member = Member.find(params[:id])
  end
  </code></pre>
  
  <p>As of now when showing a member, the URL is <a href="http://myapp.tld/members/1" rel="nofollow noreferrer">http://myapp.tld/members/1</a>.  Let's say the member's name was cooldude.  How hard would it be to show <a href="http://myapp.tld/members/cooldude" rel="nofollow noreferrer">http://myapp.tld/members/cooldude</a> or even <a href="http://myapp.tld/cooldude" rel="nofollow noreferrer">http://myapp.tld/cooldude</a> if possible?</p>
  
  <p>Thanks for your help.</p>