Skip to content

Commit f481602

Browse files
authored
Merge pull request rails#53218 from lcmen/patch-1
Update error_reporting.md
2 parents a2f2dc8 + e8533e4 commit f481602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/error_reporting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ If no error is raised in the block, `Rails.error.handle` will return the result
8888

8989
```ruby
9090
user = Rails.error.handle(fallback: -> { User.anonymous }) do
91-
User.find_by(params[:id])
91+
User.find(params[:id])
9292
end
9393
```
9494

0 commit comments

Comments
 (0)