Mar 31, 2011

Ruby cannot find installed gems

Problem

When we run any ruby file with ruby command, it won't be able to find all installed gems.

Solution

Add require 'rubygems' at the top of the file