Devise custom messages when validation fails

后端 未结 4 1390
说谎
说谎 2020-12-15 13:12

I\'m using devise as authentication engine in my app. Is there any way to use custom messages when devise validation fails. Devise provides me with the following message whe

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-15 13:41

    Not a complete answer, but this sounds like it should be solvable with I18n, either with the devise-internal keys, or by overriding active record's validation error messages for your user model.

    Here's a similar question: Devise attributes for i18n?

提交回复
热议问题