Posts Tagged regex
Email validation in Ruby On Rails 3 or Active model without regexp
Posted by Hallelujah in email, rails, ruby on July 21, 2010
In Rails 3.0, you can use custom validator in your active_record model. So I wanted to manage email validations without regexp matching like others do. I find a new way to make this work thanks to ruby mail gem, a dependency of Rails 3.0 class User < ActiveRecord::Base validates :email, :presence => true, :email => [...]
