DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Ruby on Rails Note


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:

  1. You will need to apt-get -f install; apt-get install apt-get install libsqlite3-dev on Linux Mint to create RoR project.

  2. 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...



Published

Apr 4, 2014

Last Updated

Oct 25, 2017

Category

Tech

Tags

  • RoR 1

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor