Skip to content

Instantly share code, notes, and snippets.

@ngw
Created September 24, 2010 20:54
Show Gist options
  • Save ngw/596025 to your computer and use it in GitHub Desktop.
Save ngw/596025 to your computer and use it in GitHub Desktop.
/Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/mongoid-1.9.2/lib/mongoid/config.rb:167:in `_master': You have a nil object when you didn't expect it! (NoMethodError)
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/mongoid-1.9.2/lib/mongoid/config.rb:117:in `from_hash'
from /Users/ngw/zooppa/config/initializers/mongoid.rb:7
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/mongoid-1.9.2/lib/mongoid.rb:93:in `configure'
from /Users/ngw/zooppa/config/initializers/mongoid.rb:6
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:171:in `load_without_new_constant_marking'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:171:in `load'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:171:in `load'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/rails-2.3.9/lib/initializer.rb:622:in `load_application_initializers'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/rails-2.3.9/lib/initializer.rb:621:in `each'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/rails-2.3.9/lib/initializer.rb:621:in `load_application_initializers'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/rails-2.3.9/lib/initializer.rb:176:in `process'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/rails-2.3.9/lib/initializer.rb:113:in `send'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/rails-2.3.9/lib/initializer.rb:113:in `run'
from /Users/ngw/zooppa/config/environment.rb:10
from /Users/ngw/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/ngw/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `require'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `require'
from /Users/ngw/zooppa/config.ru:4
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/rack-1.1.0/lib/rack/builder.rb:46:in `instance_eval'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize'
from /Users/ngw/zooppa/config.ru:1:in `new'
from /Users/ngw/zooppa/config.ru:1
from /Users/ngw/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `eval'
from /Users/ngw/.rvm/gems/ree-1.8.7-2010.02/gems/rails-2.3.9/lib/commands/server.rb:78
from /Users/ngw/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/ngw/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script/server:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment