Displaying 1 result from an estimated 1 matches for "pcollins".
Did you mean:
collins
2007 May 31
3
where to get list of all ActiveRecord classes
Anybody know how to get a list of all your model classes from a rails
environment?
I''d like to do something like "ActiveRecord::Base.subclasses" but that
gives me:
pcollins@horatio:~/proj/foobox$ script/console
Loading development environment.
>> ActiveRecord::Base.subclasses
NoMethodError: protected method `subclasses'' called ...
Anybody know how to do this? (getting a directory listing doesn''t count)
Much obliged,
PMC
--
Posted via...