In this post I want to show you how to install Ruby on Rails.
How to install Ruby on Rails on Windows
Step 1: Get rails installer
Get installer on rails installer site.
Step 2: Run rails installer
Go to folder where you’ve downloaded installer and run it:
It will install Ruby with Rails and all dependencies you will use in developing Rails application
Step 3: Running installer in Command prompt
Try checking succesfull installation. Go to the Start Menu, select all programs and choose Rails Installer and then Command Prompt with Ruby and Rails
You should see window with your Windows Version and actual directory path. Let’s check it out if Ruby is properly installed. Type this into command prompt:
$ ruby -v $ rails -v
You should see something like this:
How to install Ruby and Rails on Mac OS X
Use either rails installer or go to this website for installation instructions
How to install Ruby on Rails on Linux
Step 1: Install RVM
RVM(Ruby Version Manager) is a simple tool for easy installation of ruby. First you have to install curl.
$ sudo apt-get install curl
Then install rvm:
Step 2: Installing ruby
Go and install ruby with RVM:
Step 3: Installing Rails
For installing Ruby on Rails you’ll use Rubygems.
Ok let’s check out succesfull installation with terminal:
$ rails -v $ ruby -v
That’s all for now. If you want to know more about developing Rails applications I recommend you ruby on rails guide. I wrote post about how to create todo list app in rails, so if you want you can check it out.