Skip to content

Instantly share code, notes, and snippets.

@liwh
Created December 2, 2010 06:25
Show Gist options
  • Save liwh/724883 to your computer and use it in GitHub Desktop.
Save liwh/724883 to your computer and use it in GitHub Desktop.
处理rails 的错误页面
我们可以通过重载rails 的rescue_action_in_public 方面,自定义,我们的异常处理,它默认情况会调用
render_optional_error_file去渲染400,500页面。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment