Rails服务器问题?应用无法在网络浏览器

时间:2015-08-21 08:57:57

标签: ruby-on-rails rvm powder

我试图运行我的rails项目,但是当我尝试访问myproject.dev时,网页仍然处于加载状态。粉末开始没有任何问题,卫兵没有拿起任何 错误。

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,但在此之前我遇到了同样的问题。   尝试谷歌搜索,但无法找到解决方案。

更新

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

1 个答案:

答案 0 :(得分:0)

railties gem存在问题 然后再尝试gem uninstall railties然后gem install railties ...然后只有这个才有用 要么 做gem install rails