Skip to content

Instantly share code, notes, and snippets.

@jqr
Created April 17, 2009 18:49
Show Gist options
  • Save jqr/97189 to your computer and use it in GitHub Desktop.
Save jqr/97189 to your computer and use it in GitHub Desktop.
def render_optional_error_file(status)
begin
code = ActionController::StatusCodes::SYMBOL_TO_STATUS_CODE[status]
render :template => "/statics/#{code}"
rescue
super
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment