Installation
Install Javascript runtime
Install nvm, then add a node.js version:
$ nvm install 0.10.26
$ nvm use 0.10.26
Install Ruby environment
Install rvm, then add a ruby version:
$ rvm install 2.1.0
$ rvm use 2.1.0
Install Ruby on rails
$ gem install rails
$ rails new first_app
Start RoR server
$ cd first_app; rails server
Note:
-
You will need to
apt-get -f install; apt-get install apt-get install libsqlite3-dev
on Linux Mint to create RoR project. -
If you didn't install javascript runtime, or didn't add it to current session with
nvm use ...
, you will get the following error when starting rails server:rails server autodetect could not find a javascript runtime...