rm -rf ~/.rvm
curl -L https://get.rvm.io | bash -s stable
reopen the terminal then:
rvm install 2.6.1
rvm use 2.6.1 --default
We need to upgrade our entire version of RubyGems. To do this we have to run the following command
gem update --system
Now we need to reinstall some gems we use globally
gem install bundler
gem install learn-co
gem install nokogiri
Finally, we need to install the right version of Rails. To do this, please run:
gem install rails OR ADD your version -v '5.0.7.1'
ruby -v
bundle -v