Skip to content

Instantly share code, notes, and snippets.

@sobstel
Created February 19, 2011 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sobstel/835382 to your computer and use it in GitHub Desktop.
Save sobstel/835382 to your computer and use it in GitHub Desktop.
interpret_status in rails3
def interpret_status(status)
Rack::Utils::HTTP_STATUS_CODES[status.to_i] || status.to_s
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment