Flowdock
v6.0.0 - Show latest stable - 0 notes - Superclass: StandardError

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.