Home Allow form to accept special character for email
Reply: 0

Allow form to accept special character for email

user509
1#
user509 Published in May 22, 2018, 12:10 am

I want to allow special characters in my form for email.

In my form I have :

= f.input :email

When I enter example@geschäft.com, I got something like example@xn--geschft-9wa.com in my controller when i inspect params.require(:contact).permit(contact_attributes).

Resolved:

I resolved it by disabling html5 on my field:

= f.input :email, html5: false
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.31889 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO