Static Pages in Rails without Corresponding Controllers
// See if a file exists on a path provided by a record in your database
def show page_url = params[:url].join('/') if File.exists?("#{RAILS_ROOT}/app/views/pages/#{page_url}") render :template => "static/#{page_url}" end end