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

Advertisements

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: