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
  • 165,429
  • 45
  • 277
  • 381
timpone
  • 19,235
  • 36
  • 121
  • 211

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
  • 21,204
  • 19
  • 101
  • 176