Я изменил минимальную длину по умолчанию для пароля с @@ password_length = 5..128 до 6..128.Когда я даю неверную проверку пароля во время регистрации, ошибка проверки отображается как «слишком короткая (минимум 5 символов)».Как изменить это сообщение об ошибке на «минимум 6 символов».Я прочитал некоторые ответы в stackoverflow, которые они говорят, чтобы посмотреть в devise.views.en.yml .Но все еще не могу изменить сообщение об ошибке.
Мой devise.views.en.yml (поле пароля) выглядит так:
passwords:
edit:
change_my_password: Change my password
change_your_password: Change your password
confirm_new_password: Confirm new password
new_password: New password
new:
forgot_your_password: Forgot your password?
send_me_reset_password_instructions: Send me reset password instructions
no_token: You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided.
send_instructions: You will receive an email with instructions on how to reset your password in a few minutes.
send_paranoid_instructions: If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes.
updated: Your password has been changed successfully. You are now signed in.
updated_not_active: Your password has been changed successfully.
Предложения приветствуются