DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+7 =
Submit