Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Assaf Arkin
RE: undefined method `gsub' for Mac address [ reply ]  
2008-10-16 18:47
In version 2.0, calling UUID.new returns a new UUID generator, which you can use to create new UUIDs by calling its generate method.

There's also one global instance, so you can call UUID.generate directly.

By: Brad Garland
undefined method `gsub' for Mac address [ reply ]  
2008-10-16 02:34
Not sure if it's the new version of UUID but when I ran the code I kept getting:

"undefined method `gsub' for <insert Mac address and serial here>"

Seems that the UUID.new method returns a Mac address and serial. I replaced all occurrences of UUID.new with UUID.generate and that seemed to fix the problem.

Brad.