LoginSignup
0
0

More than 5 years have passed since last update.

エラーメッセージについて。

Posted at

質問です。
バリデーションで引っかかった時のエラーメッセージのことなんですが

```config.i18n.default_locale = :ja```
を.rbに記述し

```ja:
activerecord:
models:
user: ユーザー
attributes:
user:
id: ID
created_at: 登録日時
updated_at: 更新日時
birthday: 生年月日
email: メールアドレス
salon_id: サロン
password: パスワード```
をja.ymlに記述し
app.rbに
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '*', '.{rb,yml}').to_s]
を記述したんですが、
日本語にならなかったです。改善点や問題点はありますでょうか

0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0