It worked thanks. Am I right in presuming that within the rails app source code that the require rubygems is effectively already done automatically? Do I have require rubygems in every .rb file that uses gem installed code?