Devise 'translation missing' error with su

2019-04-06 02:48发布

I've subclassed Devise::RegistrationsController. The subclassed controller, in my case, is AdminRegistrationsController.

But, when I sign up a new admin, for example, the flash shows the message:

translation missing: en.devise.admin_registrations.admin.signed_up

I've verified an entry exists in config/locales/devise.en.yml. Here's the snippet:

en:
  devise:
    registrations:
      signed_up: 'Welcome! You have signed up successfully.'

What am I missing?

1条回答
再贱就再见
2楼-- · 2019-04-06 03:28

You must do this :

en:
  devise:
    admin_registrations:
      admin:
        signed_up: 'Welcome! You have signed up successfully.'
查看更多
登录 后发表回答