Created
November 29, 2010 15:24
-
-
Save hartbit/720076 to your computer and use it in GitHub Desktop.
Sinatra GET Regexp with ArgumentError wrong number of arguments (2 for 1)
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
get %r{/apps/([a-z]+(.[a-z-]+)+)} do |app_id| | |
app_id.inspect | |
end |
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
ArgumentError - wrong number of arguments (2 for 1): | |
test.rb:10:in `block in <main>' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:in `call' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:in `block in compile!' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:in `instance_eval' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:in `route_eval' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:604:in `block (2 levels) in route!' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:656:in `block in process_route' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:in `catch' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:in `process_route' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:603:in `block in route!' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:in `each' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:in `route!' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:741:in `dispatch!' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in `block in call!' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in `instance_eval' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in `block in invoke' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in `catch' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in `invoke' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in `call!' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in `call' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in `call' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in `call' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in `call' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in `block in call' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in `synchronize' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in `call' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rack-1.2.1/lib/rack/content_length.rb:13:in `call' | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in `service' | |
/opt/local/lib/ruby1.9/1.9.1/webrick/httpserver.rb:111:in `service' | |
/opt/local/lib/ruby1.9/1.9.1/webrick/httpserver.rb:70:in `run' | |
/opt/local/lib/ruby1.9/1.9.1/webrick/server.rb:183:in `block in start_thread' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment