On Oct 13, 2:58 pm, Tsolmon Narantsogt
<mnt...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.