Skip to content

Instantly share code, notes, and snippets.

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/shar