Return to Snippet

Revision: 3785
at September 13, 2007 15:46 by lmcdougall


Initial Code
validates_format_of(:email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, :on => :create, :message=>"has an invalid format") # AND A LOGIN VALIDATION EXAMPLE MIGHT BE validates_format_of :login, :with => /\[email protected]\w+\.\w{2}/

Initial URL


Initial Description


Initial Title
Varidate email address

Initial Tags
ruby

Initial Language
Ruby