Skip to content

Commit

Permalink
Added blank line between text and code block
Browse files Browse the repository at this point in the history
  • Loading branch information
maniSHarma7575 committed Jul 12, 2024
1 parent eedd30d commit cba8024
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions guides/source/active_record_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ ActiveRecord::RecordInvalid: Validation failed: Name can't be blank
```

In the example below, the create method returns an ActiveRecord object, even if it is invalid, which can then be checked for errors.

```irb
irb> user = User.create
=> #<User:0x000000013e8b5008 id: nil, name: nil>
Expand Down

0 comments on commit cba8024

Please sign in to comment.