当我尝试执行 rails serverthin start 时,两者都说:“在任何来源中都找不到 activesupport-3.0.6。”

我安装了 activesupport-3.0.7。我是否需要恢复以便 activesupport 与我的 Rails 版本 (3.0.6) 匹配?

最佳答案

在 rails 目录中运行 bundle install (或将 Gemfile 更改为需要 3.0.7 而不是 3.0.6)

此外,在运行 rails 命令时,您可以在它前面加上 bundle exec 以确保它使用正确的版本:

bundle exec rails server

关于ruby-on-rails - "Could not find activesupport in any of the sources,"即使安装了 activesupport。,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5876968/

10-11 05:05