2012-07-23 49 views
9

我已经子类Devise::RegistrationsController。在我的情况下,子类控制器是AdminRegistrationsController用子类控制器设计'翻译缺失'错误

但是,当我注册了一个新的管理,例如,flash显示消息:

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

我验证过的条目config/locales/devise.en.yml存在。这里的片段:

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

我错过了什么?

回答

14

必须这样做:

en: 
    devise: 
    admin_registrations: 
     admin: 
     signed_up: 'Welcome! You have signed up successfully.' 
+0

这并没有为我工作 – Sean 2016-12-22 07:27:20