开发者

Where is this error message coming from? Simple_form?

开发者 https://www.devze.com 2023-03-01 07:34 出处:网络
i\'m getting this error message popping up with strange styling. Where in my application is it comi开发者_运维百科ng from? I\'m using the simple form gem.

i'm getting this error message popping up with strange styling. Where in my application is it comi开发者_运维百科ng from? I'm using the simple form gem.

Where is this error message coming from? Simple_form?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消