title: Help creating a route and controller for static pages
body: <p>I have some static pages I am trying to make like team, aboutUs, terms of service, etc.</p>
  
  <p>I am trying to make one controller to handle the static pages, but I am missing some know-how.</p>
  
  <p>Here is what I did:</p>
  
  <p>In routes.rb, before the end I added this:</p>
  
  <pre><code>match "/:action" =&gt; "pages"
  </code></pre>
  
  <p>Then I made a controller named pages_controller.rb</p>
  
  <p>Currently it is empty.  What I need it to do is recognize the requests like /pages/team or pages/about_us and redirect to the right static page.  How can I do that?</p>
  
  <p>Thank you!</p>