0
當用戶註冊時,他們必須確認,因爲我啓用了Devise的可確認模塊。這是他們看到的消息:Rails 3,設計:更改用戶註冊時的Flash消息
You have signed up successfully. However, we could not sign you in because your account is unconfirmed.
我檢查了區域文件,並試圖做一些修改:
registrations:
signed_up: 'Welcome! You have signed up successfully.'
inactive_signed_up: 'You have signed up successfully. However, we could not sign you in because your account is %{reason}.'
...
reasons:
inactive: 'inactive'
unconfirmed: 'awaiting email confirmation. Please check your email'
有沒有辦法有%{reason}
參考reasons.unconfirmed的消息,而不是僅僅使用「未經證實」?