Thursday, October 13, 2011

[Rails] Re: Create unique String

On Oct 13, 2:58 pm, Tsolmon Narantsogt <mnt...@gmail.com> 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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate