Class: TemplateController
- Inherits:
-
HTTPController
- Object
- HTTPController
- TemplateController
- Defined in:
- lib/appswarm/http/http_controller.rb
Instance Attribute Summary
Attributes inherited from HTTPController
#contentType, #params, #sessionId
Instance Method Summary collapse
-
#initialize(*args) ⇒ TemplateController
constructor
A new instance of TemplateController.
Methods inherited from HTTPController
#controllerName, controllerName, #count, #css, #findFile, layout, #layoutName, #log, #method_missing, #name, #redirect_to, #render_html, #render_partial, #run, #session, #url, #urlPart, #viewInstead
Constructor Details
#initialize(*args) ⇒ TemplateController
Returns a new instance of TemplateController.
261 262 263 264 265 266 |
# File 'lib/appswarm/http/http_controller.rb', line 261 def initialize(*args) super templateCntrlFile=caller[0].split(":")[0] templateDir=File.('../..',templateCntrlFile) @basePaths<<templateDir end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HTTPController