On Oct 13, 2:58 pm, Tsolmon Narantsogt <[email protected]> wrote:
> Hello comrades.
>
> How to create unique string in Rails.
> i'll use instead of id. (GET METHOD)
>
Well there are a variety of gems (such as the uuid gem) for creating
uuids if that's what you want. If you need something more random, then
you might want to look at ActiveSupport::SecureRandom

> -----------
> Thanks
> Tsolmon

-- 
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.

Reply via email to