Ruby on Rails Hands_on

Installing nodejs & RVM

To install nodejs package click on the link below

sudo apt-get install nodejs -y

To install RVM package click on the link below

gpg --keyserver hkp:// --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \curl -sSL | bash -s stable --rails

To start rvm, you need to specify the rvm source directory which will be displayed after you run the curl command. For example, you will see something like this: source /usr/local/rvm/scripts/rvm (do not copy paste)

To check whether all packages are installed use the following commands
  • rails -v
  • ruby -v
  • nodejs -v