/ Published in: Rails
Expand |
Embed | Plain Text
validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, :message => 'email must be valid'
You need to login to post a comment.
harmdewit on 12/10/10
1 person have marked this snippet as a favorite
validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, :message => 'email must be valid'
You need to login to post a comment.