Skip to content

Instantly share code, notes, and snippets.

@rougecardinal
Created October 5, 2010 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rougecardinal/611575 to your computer and use it in GitHub Desktop.
Save rougecardinal/611575 to your computer and use it in GitHub Desktop.
NoMethodError: undefined method `each' for nil:NilClass
from /space/www/xxx_censored/data/htdocs/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.4/lib/active_record/connection_adapters/mysql2_adapter.rb:628:in `select'
from /space/www/xxx_censored/data/htdocs/shared/bundle/ruby/1.9.1/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all'
from /space/www/xxx_censored/data/htdocs/shared/bundle/ruby/1.9.1/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:56:in `select_all'
from /space/www/xxx_censored/data/htdocs/shared/bundle/ruby/1.9.1/gems/activerecord-3.0.0/lib/active_record/base.rb:467:in `find_by_sql'
from /space/www/xxx_censored/data/htdocs/shared/bundle/ruby/1.9.1/gems/activerecord-3.0.0/lib/active_record/relation.rb:64:in `to_a'
from /space/www/xxx_censored/data/htdocs/shared/bundle/ruby/1.9.1/gems/activerecord-3.0.0/lib/active_record/relation.rb:221:in `destroy_all'
from /space/www/xxx_censored/data/htdocs/shared/bundle/ruby/1.9.1/gems/activerecord-3.0.0/lib/active_record/base.rb:439:in `destroy_all'
from (irb):2
from /space/www/xxx_censored/data/htdocs/shared/bundle/ruby/1.9.1/gems/railties-3.0.0/lib/rails/commands/console.rb:44:in `start'
from /space/www/xxx_censored/data/htdocs/shared/bundle/ruby/1.9.1/gems/railties-3.0.0/lib/rails/commands/console.rb:8:in `start'
from /space/www/xxx_censored/data/htdocs/shared/bundle/ruby/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb:23:in `<top (required)>'
from script/rails:9:in `require'
from script/rails:9:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment