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.
Ie, don't want to do this in pages controller.
def about
...
end
def privacy
...
end
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.