Return to Snippet

Revision: 1348
at September 27, 2006 13:18 by gdonald


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

Revision: 1347
at September 27, 2006 13:18 by gdonald


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

Initial URL

                                

Initial Description

                                

Initial Title
Rails validate email

Initial Tags
email

Initial Language
Ruby