Skip to content

Commit bbf4fc9

Browse files
Merge pull request rails#49603 from y0608/patch-1
Fix broken link in AR validations guide [ci skip]
2 parents 837b8d9 + bb638b4 commit bbf4fc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

guides/source/active_record_validations.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ method definition, which is the record to be validated.
846846

847847
If you want to add an error on a specific attribute, pass it as the first
848848
argument, such as `record.errors.add(:first_name, "please choose another
849-
name")`. We will cover [validation errors][] in greater detail later.
849+
name")`. We will cover [validation errors](#working-with-validation-errors) in greater detail later.
850850

851851
```ruby
852852
def validate(record)
@@ -914,7 +914,6 @@ end
914914

915915
We will cover [custom validations](#performing-custom-validations) more later.
916916

917-
[validation errors](#working-with-validation-errors)
918917
[`validates_with`]: https://api.rubyonrails.org/classes/ActiveModel/Validations/ClassMethods.html#method-i-validates_with
919918

920919
Common Validation Options

0 commit comments

Comments
 (0)