Skip to content

Instantly share code, notes, and snippets.

@xxx
Created March 2, 2012 20:44
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 xxx/6650c3206eb0cc62f8c4 to your computer and use it in GitHub Desktop.
Save xxx/6650c3206eb0cc62f8c4 to your computer and use it in GitHub Desktop.
NoMethodError: undefined method `reverse' for nil:NilClass
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:8:in `block in to_sql'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb:17:in `call'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb:17:in `visit_Arel_Nodes_BindParam'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/visitor.rb:19:in `visit'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/to_sql.rb:341:in `visit_Arel_Nodes_Equality'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/visitor.rb:19:in `visit'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/to_sql.rb:323:in `block in visit_Arel_Nodes_And'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/to_sql.rb:323:in `map'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/to_sql.rb:323:in `visit_Arel_Nodes_And'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/visitor.rb:19:in `visit'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/to_sql.rb:26:in `block in visit_Arel_Nodes_DeleteStatement'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/to_sql.rb:26:in `map'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/to_sql.rb:26:in `visit_Arel_Nodes_DeleteStatement'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/visitor.rb:19:in `visit'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/visitor.rb:5:in `accept'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/arel-3.0.2/lib/arel/visitors/to_sql.rb:19:in `accept'
... 14 levels...
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:254:in `destroy'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.2/lib/active_record/transactions.rb:236:in `block in destroy'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.2/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/newrelic_rpm-3.3.0/lib/new_relic/agent/method_tracer.rb:491:in `block in transaction_with_trace_ActiveRecord_self_name_transaction'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/newrelic_rpm-3.3.0/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/newrelic_rpm-3.3.0/lib/new_relic/agent/method_tracer.rb:486:in `transaction_with_trace_ActiveRecord_self_name_transaction'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.2/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.2/lib/active_record/transactions.rb:236:in `destroy'
from (irb):2
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.2/lib/rails/commands/console.rb:47:in `start'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.2/lib/rails/commands/console.rb:8:in `start'
from /Users/mpd/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.2/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'1.9.2-p290 :003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment