Skip to content

Instantly share code, notes, and snippets.

@DarrenN
Created March 7, 2010 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DarrenN/324125 to your computer and use it in GitHub Desktop.
Save DarrenN/324125 to your computer and use it in GitHub Desktop.
require "rubygems"
require 'mongo'
db = Mongo::Connection.new.db("mydb")
## Errors:
./mongo.rb:6: uninitialized constant Mongo (NameError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from mongo.rb:4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment