Forum: Ruby on Rails validates_uniqueness_of

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
85b08e824ad93f308c705edd49c5530e?d=identicon&s=25 Surekha.Matte (Guest)
on 2006-05-18 13:34
I used validates_uniqueness_of

    it is case insensitive, it takes only admin not Admin.

So please help me out how to put validates_uniqueness_of as case
sensitive

Thanks in Advance
Surekha.Matte
58c6efb8466b9f85155fe6aa9fc37fce?d=identicon&s=25 Chris T (Guest)
on 2006-05-18 14:00
(Received via mailing list)
What are you trying to do?

validates_uniqueness_of takes a symbol representing a field -- :my_field
-- as the parameter, and then checks that the entry is unique in the
model (optionally limited with :scope => :another_field )
This topic is locked and can not be replied to.