Class: ApiDoc::DocumentsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- ApiDoc::DocumentsController
- Defined in:
- app/controllers/api_doc/documents_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
layout “api_doc/application”.
- #show ⇒ Object
Instance Method Details
#index ⇒ Object
layout “api_doc/application”
4 5 6 |
# File 'app/controllers/api_doc/documents_controller.rb', line 4 def index # render text: "Yeah!" end |
#show ⇒ Object
8 9 10 |
# File 'app/controllers/api_doc/documents_controller.rb', line 8 def show render template: File.join("api_docs", params[:path]) end |