In rails, I can get the name of the current controller via controller_name and the current action by calling action_name. I am looking for similar runtime reflection for fet
We are cleaning out unused controllers and actions. So I wanted to create an exhaustive list to mark for deletion. Here's what I ended up doing
ApplicationController.descendants.each do |controller|
puts controller.name
controller.action_methods.each do |action|
puts ' ' + action
end
end
That provides a nice list with actions indented under controller names.