我试图运行我的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,但它并没有解决我的问题。
答案 0 :(得分:0)
railties
gem存在问题
然后再尝试gem uninstall railties
然后gem install railties
...然后只有这个才有用
要么
做gem install rails