Class: Doculab::DocsController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



8
9
10
11
# File 'app/controllers/doculab/docs_controller.rb', line 8

def index
  find('index')
  render :text => @doc.render, :layout => true
end

#showObject



13
14
15
16
# File 'app/controllers/doculab/docs_controller.rb', line 13

def show
  find(params[:permalink])
  render :text => @doc.render, :layout => true
end