Class: Opro::Oauth::DocsController
- Inherits:
-
OproController
- Object
- ApplicationController
- OproController
- Opro::Oauth::DocsController
- Defined in:
- app/controllers/opro/oauth/docs_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
10 11 |
# File 'app/controllers/opro/oauth/docs_controller.rb', line 10 def index end |
#render_doc(name) ⇒ Object
18 19 20 21 22 23 |
# File 'app/controllers/opro/oauth/docs_controller.rb', line 18 def render_doc(name) str = read_file(name.to_s) str = parse_erb(str) str = parse_markdown(str) str.html_safe end |
#show ⇒ Object
13 14 15 16 |
# File 'app/controllers/opro/oauth/docs_controller.rb', line 13 def show @doc = params[:id] render :file => default_404, :status => 404 and return unless md_exists?(@doc) end |