I have a couple questions. 1) I have a couple of emails.They are separated between buy comma or space.How to find which one is correct? I was thinking using regular expression like this one :
/\A[\w+\-.]+@[a-z\d\-]+(\.[a-z]+)*\.[a-z]+\z/i 2)How to put valid email address to database ? 3)If some email address is not valid then i have to give a massage using client-side which email are not valid I was thinking javascript.But how?I don't know to use rails and javascript -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ea908384-eba6-42e3-b440-cf1e6ecde43b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.