Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3 - Devise 'Please enter an email address' popup message, even when validatable disabled

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?

like image 236
Darcbar Avatar asked Sep 07 '11 11:09

Darcbar


2 Answers

probably this is due to the html5 validation built in your browser. Try to add novalidate="novalidate" to your form tag

like image 58
binarycode Avatar answered Nov 15 '22 13:11

binarycode


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.

like image 27
Jared Avatar answered Nov 15 '22 13:11

Jared