Created
April 20, 2009 07:10
-
-
Save jinzhu/98412 to your computer and use it in GitHub Desktop.
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 'rubygems' | |
require 'sinatra' | |
require 'rack/contrib' | |
class MyApp < Sinatra::Default | |
get '/' do | |
'main app!' | |
end | |
end | |
use Rack::Callbacks do | |
# before {'before'} | |
run MyApp | |
# after {'after'} | |
end | |
---------------- | |
ERROR: !! Unexpected error while processing request: wrong number of arguments (1 for 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment