search for: action_method

Displaying 3 results from an estimated 3 matches for "action_method".

Did you mean: action_methods
2006 Jul 24
1
Injecting actions into controllers
Hi, I''m trying to write a plugin that should inject an action into the controller. 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.cl...
2007 Feb 28
1
Any reason not to further restrict the action names hidden by default?
A couple of years ago, no objections were voiced to a proposed patch of ActionController that would allow controllers to have methods with the same names as Object''s methods (currently, ActionController::Base.hidden_actions, as called by action_methods, prevents this). Such a change is of interest to me since I just blew some time figuring out why rails wasn''t finding a ''clone'' method in one of my controllers. It would be nice to spare others the same. The 2005 discussion starts at http://lists.rubyonrails.org/piperm...
2012 Mar 22
0
problems configuring cluster to lucci and virtual machines resource
...sed_dict_querystring: (MultiDict([('command', 'Edit')]), 'command=Edit') paste.parsed_querystring: ([('command', 'Edit')], 'command=Edit') paste.registry: <paste.registry.Registry object at 0x7fa7981fef10> paste.throw_errors: True pylons.action_method: <bound method RootController.routes_placeholder of <luci.controllers.root.RootController object at 0x7fa78c7e76d0>> pylons.controller: <luci.controllers.root.RootController object at 0x7fa78c7e76d0> pylons.environ_config: {'session': 'beaker.session', 'cac...