search for: add_template_help

Displaying 2 results from an estimated 2 matches for "add_template_help".

Did you mean: add_template_helper
2010 Mar 22
5
UnitTesting-Action view testcase is failed
...Error: test_tablename(ActionView::TestCase): TypeError: wrong argument type Class (expected Module) /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/helpers.rb:76:in `include'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/helpers.rb:76:in `add_template_helper'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/helpers.rb:76:in `module_eval'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/helpers.rb:76:in `add_template_helper'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/li...
2008 Mar 03
0
A kind of monkey patch and an invitation for criticism for all you (who know this stuff better than I do)
...self; end; end end module ActionController class Base class_inheritable_accessor :controller_helper_module class_inheritable_accessor :controller_helper_object self.controller_helper_module = Module.new self.controller_helper_object = Object.new class << self def add_template_helper_with_controller_helper(helper_module) self.controller_helper_module.send(:include, helper_module) recreate_controller_helper_object add_template_helper_without_controller_helper(helper_module) end alias_method_chain :add_template_helper, :controller_helper...