title: Ruby on Rails - How do I use dashes instead of underscores in the url?
body: <p>When I ran the <code>rails generate controller Pages index sample_page</code> it created my two controllers.  I can see the page at <code>localhost:3000/sample_page</code>, but how do I change it to show dashes instead of underscores in the url ie: <code>localhost:3000/sample-page</code></p>
  
  <p>Rails doesn't like it when you create a controller with dashes, so I have to use underscore. What do I need to add to my routes.rb file?</p>
  
  <p>Thanks!</p>