【问题标题】:Ruby on Rails 3 simple-navigation could not find in any of the sources在任何来源中都找不到 Ruby on Rails 3 简单导航
【发布时间】:2011-05-05 03:32:53
【问题描述】:

我一直在使用简单导航,它工作正常。我刚刚尝试使用以下方法进行数据库迁移:

rake db:migrate

并得到错误:

测试我$ rake db:migrate (在 /Users/me/test 中) 在任何来源中都找不到 simple-navigation-3.2.0 尝试运行bundle install

我已经运行了 bundle install 并且在应用程序中有一个可用的导航。运行数据库迁移是我遇到的唯一问题。

有什么想法吗?

【问题讨论】:

  • 作为一种解决方法,我在我的 Gemfile 中注释掉 'gem "simple-navigation"' 行,运行 bundle install,运行迁移,取消注释,再次运行 bundle install。肯定有更好的方法吗?

标签: ruby-on-rails ruby-on-rails-3 rake dbmigrate


【解决方案1】:

原来是我的环境有问题。我安装了 rvm 并安装了最新版本的 Ruby,现在一切正常。

【讨论】:

    猜你喜欢
    • 2018-08-01
    • 2015-04-03
    • 2016-04-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-02
    • 2018-08-01
    • 2013-06-22
    相关资源
    最近更新 更多