I'm trying to create a form validation.
I added @user.errors.add_to_base "TEST"
to my controller, and if I call @user.valid?
, it returns false (yes, this is correct). But the error "TEST" isn't displayed (errors from the model, like from validates_presence_of
, are).
Why does it 'delete' my error? How can I avoid it?