# Trying to get uuidtools working

**URL:** <https://www.ruby-forum.com/t/trying-to-get-uuidtools-working/128226>\
**Category:** Rails\
**Created:** [February 6, 2008, 12:48am UTC](https://www.ruby-forum.com/t/trying-to-get-uuidtools-working/128226 "2008-02-06T00:48:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snowbird122](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Post date:** [February 6, 2008, 12:48am UTC](https://www.ruby-forum.com/t/trying-to-get-uuidtools-working/128226/1 "2008-02-06T00:48:59Z")

</div>

Hello-

This is a potentially obvious problem. I’m trying to generate a uuid in  
one of my models. I poked around and found the uuidtools gem (is there a  
better way to generate a uuid?). Here’s the code I’m currently using:

require ‘rubygems’  
require ‘uuidtools’

class Subscription \< ActiveRecord::Base

def initialize  
self.guid UUID.timestamp\_create.to\_s  
end  
end

It seems straight-forward, but I keep getting this error:

“no such file to load – uuidtools”

I installed the gem previously using “gem install uuidtools” and it  
seemed to be successful. What am I missing?

Regards-  
Eric
