Class: RocketDocs::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- RocketDocs::ApplicationController
- Defined in:
- app/controllers/rocket_docs/application_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 |
# File 'app/controllers/rocket_docs/application_controller.rb', line 3 def index @docs = RocketDocs.documentation render 'docs/rocket_docs/index' end |
#show ⇒ Object
8 9 10 11 |
# File 'app/controllers/rocket_docs/application_controller.rb', line 8 def show @doc = RocketDocs.documentation_for_version(params[:version]) render 'docs/rocket_docs/show' end |