in rails, how to validate a fields which is NOT uniqueness?

Posted by siulamvictor on Stack Overflow See other posts from Stack Overflow or by siulamvictor
Published on 2010-05-27T06:32:37Z Indexed on 2010/05/27 6:41 UTC
Read the original article Hit count: 155

can i have a validation which do exactly opposite to validates_uniqueness_of? i.e. i would like to show a error message when the user input is NOT exist in database.

thanks all. :)

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about validation