我跑rails generate controller welcome index
我得到了我更新的宝石--system警告 You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run gem pristine --all
红宝石宝石问题与升级
,也加入到路径〜/ .bashrc中,但还是同样的结果,有没有什么建议?
我跑rails generate controller welcome index
我得到了我更新的宝石--system警告 You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run gem pristine --all
红宝石宝石问题与升级
,也加入到路径〜/ .bashrc中,但还是同样的结果,有没有什么建议?
由于我有一个较旧的Ruby版本2.0从过去,所以它使Apache混淆。我可以明确告诉apache使用哪个目录,或者使用RVM(Ruby版本管理器)来完成所有的工作。只需要经过以下步骤:
安装RVM:
rvm get stable --auto-dotfiles
然后告诉你会使用哪个版本:
rvm use 2.2.0
更新宝石
gem install rails
现在准备走!
转到您的Gemfile.lock并更改您的Ruby版本。这可能会做到。
您使用的是Ruby管理器?
我使用rvm 1.26.11 – Amir
在我的Gemfile.lock中没有ruby version命令! – Amir