Displaying 3 results from an estimated 3 matches for "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.cla...
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/piperma...
2012 Mar 22
0
problems configuring cluster to lucci and virtual machines resource
I have Centos 6.1 and i'm configuring cluster with conga, lucci and ricci
these services are installed and running without problem. I need this type
configuration for a high availability of virtual machines which is run on
kvm. My problem is at the time of configuring "service group", when i click
to add appears the new windows wich say "add service to cluster" and i fill