rails -v cannot load such file — rails/cli (LoadError)

与世无争的帅哥 提交于 2019-11-30 19:31:04

You have installed rvm but forget to install rails gem. Install it use:

gem install rails

Turns out I just had to run bundle install and everything was fine. However, for my pinteresting repo, which uses the paperclip gem, I had to run sudo apt-get install imagemagick in order to upload images in development.

Haven't dared commit anything new and push and deploy to heroku yet though. I think it should be fine though (touch wood).

I too had the same error. I forgot to switch to correct ruby version and correct gemset using rvm. That's it, I was able to sort this issue.

$rvm list
$rvm use ruby version 
$rvm gemset use gemset-name 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!