摘要: 1. 邮箱验证VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-]+(\.[a-z\d\-]+)*\.[a-z]+\z/i validates :email, presence: true, length: { maximum: 255 }, format: { wi 阅读全文
posted @ 2017-06-22 11:01 zhuxian300c 阅读(158) 评论(0) 推荐(0) 编辑