Class: Jsdoc::DocumentationController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Jsdoc::DocumentationController
- Defined in:
- app/controllers/jsdoc/documentation_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
8 9 10 |
# File 'app/controllers/jsdoc/documentation_controller.rb', line 8 def index @projects = Project.all end |
#raw_source ⇒ Object
28 29 30 31 |
# File 'app/controllers/jsdoc/documentation_controller.rb', line 28 def raw_source @filename = params[:filename] render :text => get_source_code(@filename), :content_type => 'text/plain' end |
#source ⇒ Object
23 24 25 26 |
# File 'app/controllers/jsdoc/documentation_controller.rb', line 23 def source @filename = params[:filename] @source_code = get_source_code(@filename) end |
#symbol ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/controllers/jsdoc/documentation_controller.rb', line 15 def symbol if @version @symbol = @version.symbols.where(:alias => params[:symbol_alias]).first else @symbol = Jsdoc::Symbol.where(:alias => params[:symbol_alias]).first end end |
#welcome ⇒ Object
12 13 |
# File 'app/controllers/jsdoc/documentation_controller.rb', line 12 def welcome end |