Class: Doculab::DocsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Doculab::DocsController
- Defined in:
- app/controllers/doculab/docs_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
7 8 9 10 11 |
# File 'app/controllers/doculab/docs_controller.rb', line 7 def index find('index') response.headers['Cache-Control'] = 'public' render :text => @doc.render, :layout => true end |
#show ⇒ Object
13 14 15 16 17 |
# File 'app/controllers/doculab/docs_controller.rb', line 13 def show find(params[:permalink]) response.headers['Cache-Control'] = 'public' render :text => @doc.render, :layout => true end |