From: Rob Biedenharn Date: 2008-06-13T03:05:22+09:00 Subject: Re: Problems using UUID (universally unique identifier) On Jun 12, 2008, at 1:27 PM, Avdi Grimm wrote: > On Thu, Jun 12, 2008 at 1:19 PM, Pablo Q. > wrote: >> What am I doing wrong? > > Just use require: > > require 'uuid' > > -- > Avdi > > Home: http://avdi.org > Developer Blog: http://avdi.org/devblog/ > Twitter: http://twitter.com/avdi > Journal: http://avdi.livejournal.com Or perhaps: require 'rubygems' require 'uuid' If you ever needed a specific version of UUID, you could add a gem statement: require 'rubygems' gem 'uuid', '~> 1.0.4" require 'uuid' The example '~> 1.0.4' will be true for all 1.0.x versions where x >= 4, but false for all 1.1 or higher versions (this is the "Pessimistic Version Constraint" described at http://docs.rubygems.org/read/chapter/16#page74 if you want more). -Rob Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com