title: Create Dynamic Pages in Ruby on Rails
body: <p>What's the best solution to creating dynamic pages in Rails? I'm working on a simple admin interface where I want to be able to create pages of content and have them dynamically added to the site without having to have them added to the controller.</p>
  
  <p>Ie, don't want to do this in pages controller.</p>
  
  <pre><code>def about
  ...
  end
  
  def privacy
  ...
  end
  </code></pre>
  
  <p>I was thinking of doing something like have all pages use the show action which looks at url by permalink and fetches that from the database although I'm not sure the best approach to doing this. Any feedback on this would be great.</p>