I think making this a gem first would be a good start, and once its garnered major support then it will be merged into core. Not all applications have to validate email and URLs (although, a large majority do, I will concede)
-- Ryan Bigg On Saturday, 5 February 2011 at 10:30 PM, iain wrote: > I was wondering: shouldn't email and url validators be in ActiveModel? > I cannot remember a project where I didn't have to deal with email > fields. > > They're 100% generic too. > > I am willing to make a patch, but I'd thought I'd consult here first. > > If so, how should we do it? Via a regex, or via the mail gem[1] ? > > > [1] > http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/ > > -- > 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.
