如何在错误消息中从模型中删除字段名称 `module RankStudentModel
def self.included (base)
base.instance_eval do
validates_uniqueness_of :first_name, :scope => [:batch_id, :phone2, :middle_name, :last_name], :message => "Student with same Name and Mobile number is already Present in the Batch "
end
end
在上面的模型验证中,我需要跳过first_name错误消息,只需要显示给定的自定义消息。