HighVoltage is a gem that helps with what you do:
https://github.com/thoughtbot/high_voltage
This makes it easy to deal with these scenarios. From the docs:
Write down your static pages and put them in the RAILS_ROOT / app / views / pages directory.
$ mkdir app/views/pages $ touch app/views/pages/about.html.erb
After posting something interesting there, you can associate it with any place in your application:
link_to "About", page_path("about")
This will also work if you like a more explicit style:
link_to "About", page_path(:id => "about")
source share