Rails and how he decide to render on errors
- Rails makes a distinction between local request and public requests.
- On error, two different things happen depending on if the request is local or public.
- With a local request, Rails internal templates are rendered optimized for developers and displaying exception details.
- With a public request, Rails renders either public/404.html or a static error message.