I will definitely use this!
I will definitely use this!
In terms of standards, there's not a whole lot you can do beyond validate the domain if it includes one. You can take the HTML5 approach (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/in...), but that means leaving out at least theoretically valid email addresses.
In practice, a lot of theoretically valid email addresses are rejected by implementations, e.g. my favorite:
"@"@example.com
What's true, of course, is that you should never rely on an email address being syntactically correct. You should only use it after having done a validation process that involves sending mail to that address.i was astounded how much manual code is needed: http://jeffthomas.xyz/many-to-many-relationships-in-rails
Edit: problem is that when starting a new project people often miss those 20 loc - as well as not noticing the documented best practices for accessing the user...
I don't believe such a thing exists.
Feedback welcome. I'm the contact person for the gem.