Module: OodAppkit::WikiPage
- Extended by:
- ActiveSupport::Concern
- Included in:
- WikiController
- Defined in:
- app/controllers/concerns/ood_appkit/wiki_page.rb
Overview
A concern that can be included into an ‘ApplicationController` that displays static relative-linked pages.
Instance Method Summary collapse
-
#show ⇒ Object
GET /wiki/Home GET /wiki/uploads/project.zip.
Instance Method Details
#show ⇒ Object
GET /wiki/Home GET /wiki/uploads/project.zip
15 16 17 18 19 20 21 22 |
# File 'app/controllers/concerns/ood_appkit/wiki_page.rb', line 15 def show @page = Rails.root.join(params['content_path']).join("#{params['page']}") respond_to do |format| format.html format.all { send_file "#{@page}.#{params[:format]}", disposition: 'inline' } end end |