2012-02-20 6 views
10

私はRailsの3.2に更新し、WEBrickにを開始した後、私は次のエラーを取得:私はRailsの初心者だdevise.registrations.reasonsはymlファイルで廃止されましたか?

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}.' 
     updated: 'You updated your account successfully.' 
     destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.' 
     reasons: 
     inactive: 'inactive' 
     unconfirmed: 'unconfirmed' 
     locked: 'locked' 

申し訳ありません:私は別のラインを持っている私の工夫ロケールファイルで

[DEVISE] devise.registrations.reasons in yml files is deprecated, please use devise.registrations.signed_up_but_REASON instead. The default values are: 

en: 
    devise: 
    registrations: 
     signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.' 
     signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.' 
     signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.' 



[DEVISE] devise.registrations.inactive_signed_up in yml files is deprecated, please use devise.registrations.signed_up_but_REASON instead. The default values are: 

en: 
    devise: 
    registrations: 
     signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.' 
     signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.' 
     signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.' 

を。正確に私は何を変えなければなりませんか?そしてどうやって?

答えて

12

私はちょうどこれをまた見ました。これは、正常に動作するようです:

ところで
registrations: 
    signed_up: 'Welcome! You have signed up successfully.' 
    updated: 'You updated your account successfully.' 
    destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.' 
    signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.' 
    signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.' 
    signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.' 

:あなたが少しを削除してください:

reasons: 
    inactive: 'inactive' 
    unconfirmed: 'unconfirmed' 
    locked: 'locked' 
登録は、ブロック設定>ロケール> devise.en.yml>およそ36行の変更で

乾杯、マット

関連する問題