setup ubuntu for rails part 3

Published: by Creative Commons Licence

  • Categories:
  • Tags:

build a new rails project

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