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.
我正在维护一个旧的merb 应用程序(merb 1.1.3)。我最近切换到 ruby 1.9.2(通过 rvm)并成功安装了包。
现在,当我尝试运行应用程序时出现错误。没有要加载的文件:lib/exceptions
我怎样才能解决这个问题?
谢谢 :)
更新:应用程序 lib/ 目录中有一个 exceptions.rb 文件。
加载路径可能是错误的。我猜想 lib/ 在你的源代码树的根目录中。您可以更新 $LOAD_PATH 以包含“./”
$LOAD_PATH << "./"
或更新您的所有要求
require "./lib/exceptions"
克里斯