0

我正在尝试运行我的 rails 项目,但是当我尝试访问 myproject.dev 时,网页卡在加载状态。Powder 启动时没有任何问题,Guard 没有发现任何错误。

Rails 服务器工作,但生成此错误:

/usr/local/Cellar/ruby/2.2.3/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'railties' (>= 0) among 17 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/myuser/.rvm/gems/ruby-2.2.2:/Users/myuser/.rvm/gems/ruby-2.2.2@global', execute `gem env` for more information
  from /usr/local/Cellar/ruby/2.2.3/lib/ruby/2.2.0/rubygems/dependency.rb:324:in `to_spec'
  from /usr/local/Cellar/ruby/2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'

我最近从 rbenv 切换到 rvm,但在那之前我遇到了同样的问题。尝试谷歌搜索,但无法真正找到解决方案。

更新:

尝试重新安装railities和rails,但它并没有解决我的问题。

4

1 回答 1

0

railties宝石有问题再试一次......然后只有这样才能工作或gem uninstall railtiesgem install railtiesgem install rails

于 2015-08-21T09:09:38.327 回答