Skip to content

Commit

Permalink
Merge pull request #1754 from yasslab/willnet-patch-1
Browse files Browse the repository at this point in the history
Update active_record_validations.md
  • Loading branch information
hachi8833 authored Nov 13, 2024
2 parents 2a4b282 + fe5e39d commit c9f0946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/ja/active_record_validations.md
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ irb> person.valid?
=> false
irb> person.errors.where(:name, :too_short, minimum: 3)
=> [ ... ] # 最小が2で短すぎるすべてのnameのエラー
=> [ ... ] # 最小が3で短すぎるすべてのnameのエラー
```

これらのエラーオブジェクトから、さまざまな情報を読み出せます。
Expand Down

0 comments on commit c9f0946

Please sign in to comment.