Skip to content

Instantly share code, notes, and snippets.

@kyanny

kyanny/config.ru

Created Sep 12, 2012
Embed
What would you like to do?
デモアプリ of Sapporo Ruby Kaigi Pre Event in Tokyo
require 'rack'
class App
def call(env)
html = %Q!<html><body style="margin:0"><img src="http://30d.jp/img/kyanny/public/80a57ec4-fc89-11e1-9cd3-00262d09affa_original.jpg" /></body></html>!
[200, {'content-type' => 'text/html'}, [html]]
end
end
run App.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment