search for: _flt

Displaying 1 result from an estimated 1 matches for "_flt".

Did you mean: _fdt
2006 Jul 24
1
Injecting actions into controllers
...Please note, not just an instance method, but also an _action_, one of those that are listable by running ControllerClassName.action_methods. I wrote the following code: def render_field_search(name, object, controller, options = {}) controller.class.class_eval do define_method("#{name}_flt") { raise ''Here iam!'' } end # this should define the new method as an action too controller.class.action_methods << "#{name}_flt" [..] end It works if I try to call the method from inside render_field_search() itself, it fails if I call it...