setup ubuntu for rails part 3
build a new rails project
- create new project
$ rails new blog
- try
rails s
but received errorCould not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
- install Node.js to resolve it
$ sudo apt-get install nodejs
- try
rails s
and works fine