Friday, 18 April 2014

Ruby On Rails Installation using RVM (Ubuntu)

For the installation of ruby on rails follow below steps

* Ruby Version Manager: Firstly, we need to install ruby version manager.

$ apt-get install curl
$ \curl -sSL https://get.rvm.io | bash -s stable
$ source ~/.rvm/scripts/rvm


* Ruby: Next, Once you are using RVM , we need to install ruby


$ rvm install 2.1

you can make the recently installed ruby version as default as there may be more than one ruby installed.

$ rvm use ruby --default


* Rubygems: The next step is to install rubygems with current version/

$ rvm rubygems current 

* Rails: Once everything is setup, it's time to install rails


$ gem install rails

This is how, the ruby on rails get installed on your ubuntu machine.