I have to generate a unique and random string which is to be stored in database. For doing this I have used the "uuidtools" gem. Then in my controller I have added the following line: require "uuidtools" and then in my controllers create method I have declared a 'temp' variable and generating a unique and random 'uuid' string like this: temp=UUIDTools::UUID.random_create which is creating a string

