0

I have a controller and would like to get its public methods, but am confused about this result; there should be about ten methods:

IndexController.public_methods - ApplicationController.public_methods
# => [] 

Is this not calling what I think should be calling?

sawa
  • 160,959
  • 41
  • 265
  • 366
timpone
  • 18,201
  • 33
  • 106
  • 205

1 Answers1

0

For a particular controller, you can use action_methods

ApplicationController.action_methods

How to get list of controllers and actions in ruby on rails?

Community
  • 1
  • 1
Kristian
  • 20,416
  • 18
  • 93
  • 168