You can use :allow_nil or :allow_blank attributes to it like validates_uniqueness_of :email, :allow_nil => true
this would skip the validation if field is nil. :allow_blank works same way on empty strings. And then all/most validations com with the :if and :unless options that would allow for more detailed determination if the validation should be used --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

