I cant seem to remove an annoying popup message which appears whenever an email address is invalid during the registration process.
I'm using Devise and I have tried removing :validatable but yet the message still pops up. Its must be javascript or something as the page doesn't reload, the message just appears in an ugly pink box.
The message simply reads " Please enter an email address ".
I cant find a single thing on the web or github about this issue, nor can I find any code in the devise app which might relate to this occurance.
Any ideas?
I cant seem to remove an annoying popup message which appears whenever an email address is invalid during the registration process.
I'm using Devise and I have tried removing :validatable but yet the message still pops up. Its must be javascript or something as the page doesn't reload, the message just appears in an ugly pink box.
The message simply reads " Please enter an email address ".
I cant find a single thing on the web or github about this issue, nor can I find any code in the devise app which might relate to this occurance.
Any ideas?
Share Improve this question asked Sep 7, 2011 at 11:46 DarcbarDarcbar 8881 gold badge8 silver badges25 bronze badges3 Answers
Reset to default 13probably this is due to the html5 validation built in your browser. Try to add novalidate="novalidate"
to your form tag
The devise view uses email_field in it's views. In order to override that, you need to generate the devise views into your app and override them with a standard text_field.
You can also change the field type from email_field to text_field in the view and the html5 email validation won't be triggered.
<%= f.text_field :email %>