class Kemal::FormValidator::Required

Overview

Kemal::FormValidator::Required validates that input was provided.

Adding this validator to a field will also add the required attribute to the field if it has not already been set.

Defined in:

kemal-form/validators.cr

Constructors

Instance Method Summary

Instance methods inherited from class Kemal::FormValidator::Validator

validate(field : Kemal::Form::Field) validate

Constructor Detail

def self.new(message) #

[View source]
def self.new #

[View source]

Instance Method Detail

def validate(field : Kemal::Form::Field) #

[View source]