From f4da926a42a6aa583421fa3c18fdd47d5b908b2e Mon Sep 17 00:00:00 2001 From: nilsding Date: Fri, 1 Aug 2014 18:01:34 +0200 Subject: [PATCH] changed email_field to text_field where we don't need an email address --- app/views/devise/passwords/new.html.haml | 2 +- app/views/devise/registrations/edit.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/devise/passwords/new.html.haml b/app/views/devise/passwords/new.html.haml index fdae9202..eee273ad 100644 --- a/app/views/devise/passwords/new.html.haml +++ b/app/views/devise/passwords/new.html.haml @@ -3,7 +3,7 @@ = bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| = devise_error_messages! - = f.email_field :screen_name, autofocus: true, "User name" + = f.text_field :screen_name, autofocus: true, "User name" = f.submit "Send me reset password instructions" = render "devise/shared/links" \ No newline at end of file diff --git a/app/views/devise/registrations/edit.html.haml b/app/views/devise/registrations/edit.html.haml index 78513a5a..5bf72700 100644 --- a/app/views/devise/registrations/edit.html.haml +++ b/app/views/devise/registrations/edit.html.haml @@ -3,7 +3,7 @@ = bootstrap_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| = devise_error_messages! - = f.email_field :screen_name, autofocus: true, label: "User name" + = f.text_field :screen_name, autofocus: true, label: "User name" = f.email_field :email, label: "Email address" - if devise_mapping.confirmable? && resource.pending_reconfirmation?