Probably it is written as validates as below, so modify it as validate.
validates
validate
Class user < ApplicationRecord # NG validates :custom_method # OK validate :custom_method def custom_method ... end end
Recommended Posts