How can a validation exclude a regexp?
I’m looking for something like this:
validates_format_of :string, :without => /\A(something)\Z/
which is mentioned here, but I don’t think is a real thing (Unknown validator: 'WithoutValidator).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could write your own:
Though of course, this would have to be done for each attribute you want to check.