Let’s face it, sometimes you may need to use a UUID for a Rails application. If you do, you can try the UUID Generator. It’s working really well for me in a couple applications. Here are just a couple points of reference:
If you install it as a gem, you’ll need to generate the state file first. On my local machine (my MacBook Pro) although I could run the “uuid-setup” via sudo I couldn’t run a migration or code which called the “UUID.new” due to permissions restrictions. So you’ll either need to place a state file in your application directory, or change the file permissions to all your user account and the web server to access it. I suggest just adding it to the directory.
about me Who am I? Well, let's see: I'm a husband, father, brother, God-father, down to earth, relaxed, happy kinda guy who likes clean code, long walks on the beach, takes his laptop with him everywhere he goes, and (as I'd like to think) all around good guy!