Suppose we don't want to allow username to be any of banned = ['badWordOne', 'otherbadword', 'notthiseither']
How do we do that?
I tried using acceptance and intuitively changed accept to reject, but that doesn't work:
banned_names = ['badWordOne', 'otherbadword', 'notthiseither']
validates :username, acceptance: { reject: banned_names }, if: :username
I think I found the answer in
exclusion