Skip to content

Instantly share code, notes, and snippets.

@neaf
Created March 16, 2010 12:17
Show Gist options
  • Select an option

  • Save neaf/333904 to your computer and use it in GitHub Desktop.

Select an option

Save neaf/333904 to your computer and use it in GitHub Desktop.
protected
def render_optional_error_file(status_code)
status = interpret_status(status_code)
render :template => "/errors/#{status[0,3]}.html.erb", :status => status, :layout => 'application.html.erb'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment