Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
加载路径和自动加载路径有什么区别?如果我在自动加载路径中添加了任何目录,那么我是否需要在我的代码中要求该文件?
我假设你的意思是autoload_paths:
autoload_paths
从文档:
config.autoload_paths 接受附加路径数组以添加到加载路径。默认情况下,所有 app、lib、vendor 和 mock 路径都包含在此列表中。
资源