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 -- Posted via http://www.ruby-forum.com/.
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 ) Surekha.Matte wrote:> 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 > >
Possibly Parallel Threads
- validates_uniqueness_of case Sensitive
- validates_uniqueness_of and create atomicity
- customize validates_uniqueness_of
- Getting Acts_as_Paranoid to work with validates_uniqueness_of
- How to upload only jpeg & gif & png images into public/images using rubyonrails