Skip to content

Commit

Permalink
Update README.md (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
morissetcl authored Feb 29, 2024
1 parent 4113b2f commit 563d9c5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,27 @@ I, [2024-01-31T17:11:16.344503 #3739] INFO -- : Running: result
=> 1
```

### NoMethodError - undefined method

This error occurs when you mispelled a method in your REPL. The gem will catch that exception and will try find the closest matches. If so, it will run the command with the (potential) corrected method.

##### Before

```ruby
[1] pry(main)> User.lasst
NoMethodError: undefined method `lasst' for User:Class
from (pry):2:in `__pry__'
```
##### After
```ruby
[1] pry(main)> User.lasst
E, [2024-01-31T17:11:16.344161 #3739] ERROR -- : undefined method `lasst' for User:Class
I, [2024-01-31T17:11:16.344503 #3739] INFO -- : Running: User.last
=> #<User id: 1, email: "[email protected]">
```

### NameError - uninitialized constant

This error occurs when you mispelled a model in your REPL. The gem will catch that exception and will try find the closest matches. If so, it will run the command with the (potential) corrected model.
Expand Down

0 comments on commit 563d9c5

Please sign in to comment.