Class: TemplateController

Inherits:
HTTPController show all
Defined in:
lib/appswarm/http/http_controller.rb

Instance Attribute Summary

Attributes inherited from HTTPController

#contentType, #params, #sessionId

Instance Method Summary collapse

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.expand_path('../..',templateCntrlFile)
  @basePaths<<templateDir
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HTTPController