ruby-on-rails-3 Getting started with ruby-on-rails-3 Installating Rails on mac.

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

You would need to install ruby before you can install rails.

Mac already comes with ruby installed based on how recent your macOS is? Depending on what ruby version you want for your development, the best way to install Ruby is to use RVM. In your terminal, type the command below listed in steps:

  1. Install rvm

    curl -sSL https://get.rvm.io | bash -s stable --ruby 
    
  2. For Rails 3, best version to install is ruby 1.9.3

    rvm install 1.9.3
    ruby -v #=> 1.9.3 
    
  3. Set your Ruby version

    rvm use 1.9.3 --default
    
  4. Install Rails (this rails version requires ruby-version >=1.9.3)

    gem install rails -v 4.2.7.1
    rails -v #=> 4.2.7.1
    
  5. Install rails app

    rails new my_first_app #(this will install the app for you.)
    cd my_first_app
    rails s #(run the server)
    
  6. Open the browser and type below in your URL.

    http://localhost:3000
    

    Message saying 'Welcome to rails' will be displayed or similar.



Got any ruby-on-rails-3 Question?