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

Allow form to accept special character for email

ayoubben
1#
ayoubben Published in 2018-02-06 09:52:23Z

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
ayoubben
2#
ayoubben Reply to 2018-02-08 09:42:47Z

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.328891 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO