Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29927

Email validation in Ruby on Rails?

$
0
0

I am doing email validation in Rails with:

validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i

Also, I do HTML5 validation in the frontend but email addresses like

..abc@gmail.com
.abc@gmail.com

still are valid. What am I missing?


Viewing all articles
Browse latest Browse all 29927


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>