Getting a list of possible actions from a controller

As ‘actions’ are simply the methods defined on the controller, this should work (though I can’t test it right now):

ControllerClass.instance_methods - ActionController::Base.instance_methods


This won't work because not all instance methods are considered actions. Some
methods are hidden (with hide_actions method).

You'd better use class method ActionController::Base.action_methods or it's
instance method analogue.

Ah, so there is something like that. You’ll have to go diving around in ActionController itself to find such methods though, they aren’t on the documentation most of the time.