Skip to content

Commit a8b0203

Browse files
authored
Merge pull request rails#54067 from hachi8833/fix_validation_guide
[ci-skip][doc] Fix typo in edge Validation Guides
2 parents af9ecc7 + 7a91992 commit a8b0203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_record_validations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ In modern Rails applications, the more concise validate syntax is commonly used,
361361
for example:
362362

363363
```ruby
364-
validate :name, presence: true
364+
validates :name, presence: true
365365
```
366366

367367
However, older versions of Rails used "helper" methods, such as:

0 commit comments

Comments
 (0)