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

December 30, 2014 908 views

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

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

1 Answer

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.

Have another answer? Share your knowledge.