Jeffrey Yong Jeffrey Yong - 1 month ago 8
Ruby Question

Installing rails on Mac

I am a beginner starting to learn Ruby on Rails and I would like to install rails on my Mac. I am following the instructions step-by-step on this website: http://installrails.com/steps/install_rails and when I type the command

gem install rails --no-ri --no-rdoc
, I get the error below:

ERROR: Could not find a valid gem 'rails' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - no such name (https://api.rubygems.org/specs.4.8.gz)

Answer

Make sure that the internet proxy you are connecting to is right. It was just the problem of internet connection.