Files
nairobi/app/controllers/pages_controller.rb
Josep Jaume Rey Peroy 80104d100f Normalize page paths
Normalize page paths so they can be accessed by `page_path(:id)`.

The benefit of this is that we can add any arbitrary amount of pages
without affecting the routing layer.
2015-12-12 10:22:27 +01:00

8 lines
126 B
Ruby

class PagesController < ApplicationController
skip_authorization_check
def show
render action: params[:id]
end
end