Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tombruijn/rails-minimal-duplicate-error-app
https://github.com/tombruijn/rails-minimal-duplicate-error-app
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tombruijn/rails-minimal-duplicate-error-app
- Owner: tombruijn
- Created: 2024-12-13T15:13:54.000Z (19 days ago)
- Default Branch: main
- Last Pushed: 2024-12-13T15:14:39.000Z (19 days ago)
- Last Synced: 2024-12-20T18:29:09.547Z (12 days ago)
- Language: HTML
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rails error reporter test app
## Usage
This test app illustrates the difference between the development and production environments and how the errors are reported to error subscribers.
- In development, it reports the `ActionView::Template::Error` error.
- In production, it reports both the `NoMethodError` error.```
# Start in development environment
bin/rails s# Start in production environment
RAILS_ENV=production bin/rails s
```Visit: [localhost:3000/](http://localhost:3000/)
## Output
Development:
```
MyErrorSubscriber: ActionView::Template::Error: undefined method `foo' for nil
```Production:
```
MyErrorSubscriber: NoMethodError: undefined method `foo' for nil
```