Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- validates_format_of :subdomain, :with => /^[A-Za-z0-9]+$/, :on => :create, :message => "may only contain numbers and letters"
- validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/, :on => :create
Add Comment
Please, Sign In to add comment