Search code examples
ruby-on-railsruby-on-rails-4special-characterssimple-form

Allow form to accept special character for email


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 [email protected] 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

Solution

  • Resolved:

    I resolved it by disabling html5 on my field:

    = f.input :email, html5: false