我想更改devise_invitable的默认无效邀请令牌消息,但我不知道该怎么做才能这样做。任何帮助将不胜感激!
答案 0 :(得分:1)
要自定义您的应用,您可以修改生成的区域设置文件:
en: devise: invitations: send_instructions: 'An invitation email has been sent to %{email}.' invitation_token_invalid: 'The invitation token provided is not valid!' updated: 'Your password was set successfully. You are now signed in.' updated_not_active: 'Your password was set successfully.'
此文件应位于您应用的config/locales
目录中。