From c775ebc4a8f5bd6d51a842afdfc78e165537a187 Mon Sep 17 00:00:00 2001 From: Shozo Hatta Date: Wed, 13 Nov 2024 12:25:25 +0900 Subject: [PATCH] Update active_record_validations.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/yasslab/railsguides.jp/pull/1754 の修正を7.2にバックポート --- guides/source/ja/active_record_validations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/ja/active_record_validations.md b/guides/source/ja/active_record_validations.md index 8e24aaa3ea0..e31e8533b71 100644 --- a/guides/source/ja/active_record_validations.md +++ b/guides/source/ja/active_record_validations.md @@ -1220,7 +1220,7 @@ irb> person.valid? => false irb> person.errors.where(:name, :too_short, minimum: 3) -=> [ ... ] # 最小が2で短すぎるすべてのnameのエラー +=> [ ... ] # 最小が3で短すぎるすべてのnameのエラー ``` これらのエラーオブジェクトから、さまざまな情報を読み出せます。