开发者

What is difference between load_path & auto load_path in rails?

What is difference between load path & auto load path? if i have added any dir 开发者_Go百科to auto-load path then should i need to require that file in my code?


I assume you meant autoload_paths :

From documentation:

config.autoload_paths accepts an array of additional paths to prepend to the load path. By default, all app, lib, vendor and mock paths are included in this list.

Source

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜