Is there a way to iterate though the list of all controllers and
public actions from within a rails app?
Something like:
ApplicationController.controllers.each do |contrl|
contrl.actions.each do |act|
puts contrl.name + act.name
end
end
I''d like to put together a generalisable ACL mechanism and it would be
useful to be able to generate this information dynamically for the
adminstration interface.
Thanks.
--
Nicholas Lee
http://stateless.geek.nz
gpg 8072 4F86 EDCD 4FC1 18EF 5BDD 07B0 9597 6D58 D70C