Forum: Ruby on Rails validates_uniqueness_of

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Surekha.Matte (Guest)
on 2006-05-18 15: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

Thanks in Advance
Chris T (Guest)
on 2006-05-18 16: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.