Question

i'm getting this error message popping up with strange styling. Where in my application is it coming from? I'm using the simple form gem.

enter image description here

Was it helpful?

Solution

This behavior is from HTML 5 form validation. You can disable this easily adding this options on your simple_form initializer:

SimpleForm.disable_browser_validations = true  # default is false

Or you can disable all HTML 5 stuff with:

SimpleForm.use_html5 = false  # default is true

See more info about this on simple_form README.

These options don't work with simple_form 1.3.1, only with simple_form master or newer versions.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top