Re: [Rails] Is there a rails way to validate format of an email address?

2010-03-11 Thread kannav rajeev
validates_format_of :email, :with => /\A([...@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i, :on => :create end On Wed, Mar 10, 2010 at 5:16 PM, Rajinder Yadav wrote: > How can I validate and email address without using complex reg-ex is there > a simple rails way to do this? > > > -- > Kind Regar

[Rails] Is there a rails way to validate format of an email address?

2010-03-10 Thread Rajinder Yadav
How can I validate and email address without using complex reg-ex is there a simple rails way to do this? -- Kind Regards, Rajinder Yadav -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-