Created
July 23, 2016 13:44
-
-
Save rosenfeld/8f5663ebe39a2f5b24915853c91f30f7 to your computer and use it in GitHub Desktop.
Sample simple Rack application demonstrating rack_web_console used with rack-webconsole
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rack_web_console' | |
require 'rack-webconsole' | |
Rack::Webconsole.inject_jquery = true | |
#Rack::Webconsole.key_code = '39' | |
use Rack::Webconsole | |
run ->(env) { | |
return [404, {}, []] unless env['PATH_INFO'] == '/' | |
RackConsole.new(binding).call env | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment