Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Superclass: StandardError

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

Active Model ValidationError

Raised by validate! when the model is invalid. Use the model method to retrieve the record which did not validate.

begin
  complex_operation_that_internally_calls_validate!
rescue ActiveModel::ValidationError => invalid
  puts invalid.model.errors
end
Show files where this class is defined (1 file)
Register or log in to add new notes.