Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tombruijn/rails-minimal-duplicate-error-script
https://github.com/tombruijn/rails-minimal-duplicate-error-script
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tombruijn/rails-minimal-duplicate-error-script
- Owner: tombruijn
- Created: 2024-12-13T14:36:19.000Z (19 days ago)
- Default Branch: main
- Last Pushed: 2024-12-16T14:31:49.000Z (16 days ago)
- Last Synced: 2024-12-16T15:39:17.385Z (16 days ago)
- Language: Ruby
- Size: 3.91 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 the `NoMethodError` error.```
# Start in development environment
ruby app.rb# Start in production environment
RAILS_ENV=production ruby app.rb
```## Output
Development:
```
MyErrorSubscriber: ActionView::Template::Error: undefined method `foo' for nil
enable_reloading: true
[#]
```Production:
```
MyErrorSubscriber: NoMethodError: undefined method `foo' for nil
enable_reloading: false
[#]
```