1

I want to list all public controller actions defined by me, but simple refering to action_methods member gives a list of all methods even derived from parent classes.

Paul
  • 24,778
  • 37
  • 115
  • 228
  • Try with `your_controller.descendants` – Pavan May 16 '14 at 06:19
  • @Pavan: my controller is an end descendant itself and I want to list it's methods, but not methods of it's descendants. Please suggest a new question title if this is not clear. – Paul May 16 '14 at 06:22
  • Not quite clear but have a look at this http://stackoverflow.com/questions/8686441/how-to-get-list-of-controllers-and-actions-in-ruby-on-rails?rq=1 might help you. – Pavan May 16 '14 at 06:24
  • @Pavan: I've got my current decision from there, but it works as described above. – Paul May 16 '14 at 06:25

0 Answers0