How can I add errors to the User model manually?
User
Is it just @user.errors << \"some text goes here\" ?
@user.errors << \"some text goes here\"
@user.errors.add(:email, "Not valid")
If you don't want to use any attributes, then in your model
@user.errors[:base] << "This person is invalid because ..."
For details: link