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.
8 lines
126 B
Ruby
8 lines
126 B
Ruby
class PagesController < ApplicationController
|
|
skip_authorization_check
|
|
|
|
def show
|
|
render action: params[:id]
|
|
end
|
|
end
|