Gem installed and require but "Constant missing"

Posted by Tom Andrews on Stack Overflow See other posts from Stack Overflow or by Tom Andrews
Published on 2010-05-01T19:03:26Z Indexed on 2010/05/01 19:07 UTC
Read the original article Hit count: 426

Filed under:
|
|
|

I have installed the gem 'simple_uuid' but nothing seems to be working.

Using irb and running the following:

require 'rubygems'
require 'simple_uuid'

is fine, both return true. But running the following:

// Class added by simple_uuid
UUID.new

returns

NameError: uninitialized constant UUID
    from (irb):3
    from :0

I'm a ruby newbie, so don't assume much in the answers. Thanks.

© Stack Overflow or respective owner

Related posts about rubygems

Related posts about ruby-on-rails