You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 2, 2019. It is now read-only.
Lets say I have the next model and external validator:
classUserattr_accessor:name,:ageendclassUserValidatorincludeAequitasvalidates_presence_of:nameenduser=User.newvalidator=UserValidator.new(user)putsvalidator.valid?# => false, as expected
How do I get error messages from validator? I see #on method but it returns set of rules.
The text was updated successfully, but these errors were encountered:
Lets say I have the next model and external validator:
How do I get error messages from
validator
? I see#on
method but it returns set of rules.The text was updated successfully, but these errors were encountered: