Validates_uniqueness_of


#1

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


#2

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 )