logo

Rails & UUID Generator

logo

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.
blog comments powered by Disqus
logo
logo
Powered by Wordpress