Posted By

harmdewit on 12/10/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jwilcox09


validate email


 / Published in: Rails
 

  1. validates_format_of :email,
  2. :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i,
  3. :message => 'email must be valid'

Report this snippet  

You need to login to post a comment.