Skip to content

Commit 7a91992

Browse files
committed
[ci-skip][doc] Fix typo in Validation Guides
1 parent af9ecc7 commit 7a91992

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)