Maybe this sound crazy but you can refactor that using
validates :name, presence: true, length: {minimun: 3}
validates :price, presence: true, numericality: true