Skip to content

Instantly share code, notes, and snippets.

@rmanalan
Created August 13, 2009 23:48
Show Gist options
  • Select an option

  • Save rmanalan/167525 to your computer and use it in GitHub Desktop.

Select an option

Save rmanalan/167525 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'sinatra'
get '/' do
"Hello"
end
post "/" do
raise CustomError
end
error CustomError do
"UGH!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment