On Aug 19, 1:07 pm, James West <[email protected]> wrote: [...] > GUIDS may well be the solution I need :-) > > Any idea howe to create them :-)
Um, yeah...use the uuid gem. (Note: I've never done this, but I'd be surprised if it doesn't work.) See http://github.com/assaf/uuid/tree/master . Or you could just increment a counter as you create fields, so that you have a serial number to put in your id attributes. > > See my earlier response for the reason why I need them. Your earlier response suggests that maybe GUIDs are the wrong thing. If the objects are being dynamically created, then as long as Ruby knows about them, even if they haven't been saved to the DB, you can at least use the object_id which is guaranteed to be unique... > And thank you for taking so much trouble to understand my problem You're welcome! Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

