From 783365c59e3b8e49d5594cccd9a08ce9e7ccc183 Mon Sep 17 00:00:00 2001 From: Chashmeet Singh Date: Tue, 1 Mar 2016 16:38:58 +0530 Subject: [PATCH] Better description to avoid sign up failures --- app/views/devise/registrations/new.html.haml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/devise/registrations/new.html.haml b/app/views/devise/registrations/new.html.haml index 36eeb6e3..3167b70e 100644 --- a/app/views/devise/registrations/new.html.haml +++ b/app/views/devise/registrations/new.html.haml @@ -7,11 +7,11 @@ Sign Up .panel-body = semantic_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| - = f.input :username, input_html: { required: true } - = f.input :email, input_html: { required: true } - = f.input :name, input_html: { required: true } - = f.input :password, input_html: { required: true } - = f.input :password_confirmation, input_html: { required: true } + = f.input :username, input_html: { required: true, placeholder: 'Eg. john_doe' } + = f.input :email, input_html: { required: true, placeholder: 'Eg. abc@example.com' } + = f.input :name, input_html: { required: true, placeholder: 'Eg. John Doe' } + = f.input :password, input_html: { required: true, placeholder: 'Min. 6 characters' } + = f.input :password_confirmation, input_html: { required: true, placeholder: 'Same as above' } %p.text-right = f.action :submit, as: :button, label: 'Sign Up', button_html: { class: 'btn btn-success' }