Skip to content

Instantly share code, notes, and snippets.

@jinzhu
Created April 20, 2009 07:10
Show Gist options
  • Save jinzhu/98412 to your computer and use it in GitHub Desktop.
Save jinzhu/98412 to your computer and use it in GitHub Desktop.
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