Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails validate presence

class Person < ApplicationRecord
  validates :name, presence: true
end
Source by guides.rubyonrails.org #
 
PREVIOUS NEXT
Tagged: #rails #validate #presence
ADD COMMENT
Topic
Name
5+6 =