Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails validates_presence_of

class Person < ActiveRecord::Base
  has_one :face
  validates_presence_of :face
end
Source by guides.rubyonrails.org #
 
PREVIOUS NEXT
Tagged: #rails
ADD COMMENT
Topic
Name
4+5 =