Class: Endleaf::PagesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/endleaf/pages_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
10
# File 'app/controllers/endleaf/pages_controller.rb', line 5

def show
  path_segments = params[:page].split('/')
  view_path = path_segments.join('/')

  render template: "#{path}/#{view_path}"
end