Active Model StrictValidationFailed

Raised when a validation cannot be corrected by end users and are considered exceptional.

class Person
  include ActiveModel::Validations

  attr_accessor :name

  validates_presence_of :name, strict: true

person = = nil
# => ActiveModel::StrictValidationFailed: Name can't be blank
Show files where this class is defined (1 file)
Register or log in to add new notes.