Class: Doculab::DocsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/doculab/docs_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



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

#showObject



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