允许表单接受电子邮件的特殊字符
Allow form to accept special character for email
我想在我的电子邮件表单中允许使用特殊字符。
在我的表格中我有:
= f.input :email
当我输入 example@geschäft.com
时,我在检查时在我的控制器中得到了类似 example@xn--geschft-9wa.com
的东西
params.require(:contact).permit(contact_attributes)
.
已解决:
我通过在我的字段上禁用 html5 解决了这个问题:
= f.input :email, html5: false
已解决:
我通过在我的字段上禁用 html5 解决了这个问题:
= f.input :email, html5: false
我想在我的电子邮件表单中允许使用特殊字符。
在我的表格中我有:
= f.input :email
当我输入 example@geschäft.com
时,我在检查时在我的控制器中得到了类似 example@xn--geschft-9wa.com
的东西
params.require(:contact).permit(contact_attributes)
.
已解决:
我通过在我的字段上禁用 html5 解决了这个问题:
= f.input :email, html5: false
已解决:
我通过在我的字段上禁用 html5 解决了这个问题:
= f.input :email, html5: false