Skip to content

Instantly share code, notes, and snippets.

@flazz
Created August 31, 2009 14:10
Show Gist options
  • Save flazz/178476 to your computer and use it in GitHub Desktop.
Save flazz/178476 to your computer and use it in GitHub Desktop.
# my class is Describe < Sinatra::Base
Describe.run! if __FILE__ == $0
# error i get on that line
NoMethodError: undefined method `include?' for nil:NilClass
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:505:in `nested_params'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:888:in `inject'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:504:in `each'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:504:in `inject'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:504:in `nested_params'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:428:in `route!'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:555:in `dispatch!'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:375:in `call!'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:522:in `instance_eval'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:522:in `invoke'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:522:in `catch'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:522:in `invoke'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:375:in `call!'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:364:in `call'
/Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/showexceptions.rb:23:in `call'
/Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/commonlogger.rb:20:in `_call'
/Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/commonlogger.rb:13:in `call'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:898:in `call'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:943:in `synchronize'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:898:in `call'
/Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/handler/mongrel.rb:59:in `process'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/handler/mongrel.rb:32:in `run'
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.2/lib/sinatra/base.rb:866:in `run!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment