Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```