For the installation of ruby on rails follow below steps
* Ruby Version Manager: Firstly, we need to install ruby version manager.
* Ruby: Next, Once you are using RVM , we need to install ruby
you can make the recently installed ruby version as default as there may be more than one ruby installed.
* Rubygems: The next step is to install rubygems with current version/
* Rails: Once everything is setup, it's time to install rails
This is how, the ruby on rails get installed on your ubuntu machine.
* 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
$ rvm use ruby --default
* Rubygems: The next step is to install rubygems with current version/
$ rvm rubygems current
$ gem install rails
This is how, the ruby on rails get installed on your ubuntu machine.