I havent had any problems with it when it was PHP so im sure it will be
perfect for most people… let me know if you know of something im
forgetting in that regex and ill change it as needed.
I agree. Check that it has an @ and at least one period somewhere
after the @, but don’t waste any more time on it than that.
I don’t really see why extensive email validation is necessary. The
only reason I can think of is to stop people entering stuff which
isn’t a real email address, but of course, that won’t work, because,
because someone could quite easily enter [email protected],
which appears perfectly valid to any email validator regexp. So just
leave it out… it’s pointless, and you risk excluding legitimate
email addresses.
-Nathan
Plus I believe there are military domains that are one character, like
‘z’ for the New Zealand military?
this one actually really fries me. SO many sites don’t allow me to
enter something like [email protected]
they completly crap out…sometimes it is the period before the ‘@’, or
two periods after the ‘@’, and then the ‘.coop’ usually throws most
people for a loop.
do people a favor and keep this validation loose unless you really
need to check it. Do you care if the domain is between 2-4 chars?
It looks quite easy to use. Personally I am having trouble installing
it. If anybody have an idea:
ruby script/plugin install https://svn.greenpeace.org/repositories/rails_plugins/validates_as_email
c:/ruby/lib/ruby/1.8/net/http.rb:588:in connect': certificate verify failed (OpenSSL::SSL ::SSLError) from c:/ruby/lib/ruby/1.8/net/http.rb:588:in connect’
from c:/ruby/lib/ruby/1.8/net/http.rb:555:in do_start' from c:/ruby/lib/ruby/1.8/net/http.rb:544:in start’
from c:/ruby/lib/ruby/1.8/open-uri.rb:245:in open_http' from c:/ruby/lib/ruby/1.8/open-uri.rb:629:in buffer_open’
from c:/ruby/lib/ruby/1.8/open-uri.rb:167:in open_loop' from c:/ruby/lib/ruby/1.8/open-uri.rb:165:in open_loop’
from c:/ruby/lib/ruby/1.8/open-uri.rb:135:in open_uri' ... 11 levels... from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/plugin.rb:871 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in require’
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/depende
ncies.rb:147:in `require’
from script/plugin:3
I have been playing around with soap4r so it could come from there.
Did not have time to really look into it but somebody out there might
know the answer,