标签: ruby-on-rails activerecord rails-console
这是找出应用程序中的所有模型。这可以从项目文件夹/文件名或route.rb中找到,但只是想知道是否有一种Ruby方法可以在脚本/控制台上找到它?
答案 0 :(得分:3)
之前已经出现过。
Is there a way to get a collection of all the Models in your Rails app?