+1 for URL and email validators. Allen Madsen http://www.allenmadsen.com
On Sat, Feb 12, 2011 at 4:19 AM, Xavier Noria <[email protected]> wrote: > On Fri, Feb 11, 2011 at 7:38 PM, Rodrigo Rosenfeld Rosas > <[email protected]> wrote: > > > validates_format_of :email, :with => > > /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i > > That's an unfortunate example, will replace it with something else. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
