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
Post a Comment