Skip to content

Instantly share code, notes, and snippets.

@cypher
Created November 23, 2008 10:12
Show Gist options
  • Save cypher/28084 to your computer and use it in GitHub Desktop.
Save cypher/28084 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'sinatra'
get '/test' do
html = <<-HTML
<html>
<body>
<a href="/">root</a>
</body>
</html>
HTML
end
get '/' do
request.referer
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment