-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


[]

, 26 2018 . 14:48 +
, . , . /// . , , , , .

, - , . , . . : , , , // /. , . .

class User < ApplicationRecord
  attr_accessor :remember_token
  before_save { self.email = email.downcase }
  validates :name,  presence: true, length: { maximum: 50 }
  VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
  validates :email, presence: true, length: { maximum: 255 },
                    format: { with: VALID_EMAIL_REGEX },
                    uniqueness: { case_sensitive: false }
  has_secure_password
  validates :password, presence: true, length: { minimum: 6 }

  #   30 ...
end

:

  1. .
  2. , , .

, , , . , : . .
->

https://habrahabr.ru/post/349980/


: [1] []
 

:
: 

: ( )

:

  URL