Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update active_record_validations.md #1754

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Update active_record_validations.md #1754

merged 1 commit into from
Nov 13, 2024

Conversation

willnet
Copy link
Collaborator

@willnet willnet commented Nov 13, 2024

typo修正です。原著の対応部分は以下。

Active Record Validations — Ruby on Rails Guides

irb> person.errors.where(:name, :too_short, minimum: 3)
=> [ ... ] # all name errors being too short and minimum is 3

typo修正です。原著の対応部分は以下。

[Active Record Validations — Ruby on Rails Guides](https://guides.rubyonrails.org/v7.2/active_record_validations.html#errors-where-and-error-object)

```
irb> person.errors.where(:name, :too_short, minimum: 3)
=> [ ... ] # all name errors being too short and minimum is 3
```
@hachi8833 hachi8833 self-requested a review November 13, 2024 03:17
Copy link
Collaborator

@hachi8833 hachi8833 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正ありがとうございます!

原文も最新のmainブランチで修正されていることを確認しました。

https://github.com/rails/rails/blob/main/guides/source/active_record_validations.md?plain=1#L1764

@hachi8833 hachi8833 merged commit c9f0946 into master Nov 13, 2024
2 checks passed
@hachi8833 hachi8833 deleted the willnet-patch-1 branch November 13, 2024 03:19
hachi8833 added a commit that referenced this pull request Nov 13, 2024
#1754 の修正を7.2にバックポート
hachi8833 added a commit that referenced this pull request Nov 13, 2024
#1754 の訳文修正を7.1にバックポート
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants