ruby on rails - Customize blank errors in Devise -


now error this:

email can't blank 

i can change part

can't blank  errors:     messages:         blank: cannot empty 

but after shows as:

email cannot empty 

can change field name too? make like

e-mail_something_else cannot empty? 

how can it?

my field in form:

<div class="field">     <%= t('registration.email') %><br />     <%= f.email_field :email, autofocus: true, :class => "form-field" %> </div> 

try in devise_en.yml file:

en:     errors:         format: "%{message}" 

the default format "%{attribute} %{message}".


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -