sudo update-alternatives --config ruby
sudo update-alternatives --config gem
You can first use rvm list and rvm use to check if you can switch between the versions that way and if it didn't worked then you can these commands in terminal. It works just fine and gets you the preferred version of ruby.