Rails and how he decide to render on errors

  1. Rails makes a distinction between local request and public requests.
  2. On error, two different things happen depending on if the request is local or public.
  3. With a local request, Rails internal templates are rendered optimized for developers and displaying exception details.
  4. With a public request, Rails renders either public/404.html or a static error message.

Via semergence

No comments yet

Leave a reply