class AbstractController::Base

def action_method?(name)

* name - The name of an action to be tested
==== Parameters

it has a method defined in the controller.
Returns true if the name can be considered an action because
def action_method?(name)
  self.class.action_methods.include?(name)
end