Answers for "validation rals"

0

active record validates

class Person < ApplicationRecord
  validates :name, :login, :email, presence: true
end
Posted by: Guest on December-22-2020
0

active record validates

class Person < ApplicationRecord
  validates :name, presence: true
end
Posted by: Guest on December-22-2020

Browse Popular Code Answers by Language