Class: Endleaf::PagesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Endleaf::PagesController
- Defined in:
- app/controllers/endleaf/pages_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
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 |