Hey,
SimpleForm uses presence validation from your model:
"By default all inputs are required. When the form object has presence
validations attached to its fields, SimpleForm tells required and
optional fields apart. For performance reasons, this detection is
skipped on validations that make use of conditional options, such as
:if and :unless"
also SimpleForm uses such validation as length, numericality and
pattern. Just make sure that `config.browser_validations = true` in
your initializer if you want to use it since SimpleForm uses html5
attributes for this.
> --
> You received this message because you are subscribed to the Google Groups
> "SimpleForm" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
plataformatec-simp...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>