Class: Applicat::Mvc::Controller::Helper
- Inherits:
-
Object
- Object
- Applicat::Mvc::Controller::Helper
- Includes:
- ActionView::Helpers, ActionView::Helpers::CaptureHelper, ActionView::Helpers::UrlHelper, Singleton
- Defined in:
- lib/applicat/mvc/controller.rb
Instance Attribute Summary collapse
-
#controller ⇒ Object
Returns the value of attribute controller.
Instance Method Summary collapse
-
#method_missing(name, *args) ⇒ Object
Proxy Pattern use here cause of NoMethodError at help.link_to(‘destroy’, send(“#@resource_class@resource_class.name@resource_class.name.downcase_path”, @resource_instance), :confirm => ‘Are you sure?’, :method => :delete) in presenters undefined method ‘protect_against_forgery?’ for #<ApplicationController::Helper:0x804da10>.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
Proxy Pattern use here cause of NoMethodError at help.link_to(‘destroy’, send(“#Applicat::Mvc::Controller::Helper.@resource_class@resource_class.name@resource_class.name.downcase_path”, @resource_instance), :confirm => ‘Are you sure?’, :method => :delete) in presenters undefined method ‘protect_against_forgery?’ for #<ApplicationController::Helper:0x804da10>
158 159 160 |
# File 'lib/applicat/mvc/controller.rb', line 158 def method_missing(name, *args) @controller.send(name, *args) unless @controller.nil? end |
Instance Attribute Details
#controller ⇒ Object
Returns the value of attribute controller.
154 155 156 |
# File 'lib/applicat/mvc/controller.rb', line 154 def controller @controller end |