- :invalid_chars => true,
- :invalid_url_chars => true,
- :leading_whitespace => true,
- :trailing_whitespace => true
- validates :email, :presence => true, :confirmation => true, :invalid_chars => true
+ :characters => { :url_safe => true },
+ :whitespace => { :leading => false, :trailing => false }
+ validates :email, :presence => true, :confirmation => true, :characters => true