How to change the version of ruby on rails and ruby seperately on a droplet?

  • Posted December 30, 2014

I’m very new at deployment and I have been mostly working on windows machine. So what I’m trying to do right now is to update the droplet version from using ruby 2.1.3 and rails 4.0.2 to using ruby 2.0.0 and rails 4.1.4.

I have been trying to look up tutorial on this but so far I found nothing, any suggestion would help thanks.

Droplet is currently in its default set up Ubuntu Ruby on Rails on 14.04 (Nginx + Unicorn) Ruby 2.1.3 Rails 4.0.2

Update: Successfully changed to ruby-2.0.0-p481 with rvm rvm use ruby-2.0.0-p481 or to set it to default rvm --default use ruby-2.0.0-p481

still working on rails


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Changing rails version is just installing the right version of the gem.

gem install rails -v 4.1.4 did the job

Note: After switching to ruby 2.0.0 there is not ruby on rails that goes with it.