Skip to content

Instantly share code, notes, and snippets.

@davidcelis
Created July 1, 2010 14:03
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 davidcelis/459999 to your computer and use it in GitHub Desktop.
Save davidcelis/459999 to your computer and use it in GitHub Desktop.
NoMethodError in UsersController#create
undefined method `to_sym' for nil:NilClass
/home/david/.gem/gems/activesupport-2.3.5/lib/active_support/whiny_nil.rb:52:in `method_missing'
/home/david/Code/git/theindielist/app/controllers/users_controller.rb:45:in `create'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in `send'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in `perform_action_without_filters'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/filters.rb:617:in `call_filters'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/david/.gem/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/david/.gem/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/flash.rb:146:in `perform_action_without_newrelic_trace'
/home/david/.gem/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:138:in `perform_action'
/home/david/.gem/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/home/david/.gem/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:122:in `perform_action'
/home/david/.gem/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:38:in `trace_method_execution_no_scope'
/home/david/.gem/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:117:in `perform_action'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in `send'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in `process_without_filters'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/filters.rb:606:in `process'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:391:in `process'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:386:in `call'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:437:in `call'
/home/david/Code/git/theindielist/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:155:in `current_state'
/home/david/Code/git/theindielist/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:98:in `next_states'
/home/david/Code/git/theindielist/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:98:in `select'
/home/david/Code/git/theindielist/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:98:in `next_states'
/home/david/Code/git/theindielist/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:102:in `fire'
/home/david/Code/git/theindielist/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:210:in `register!'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:87:in `dispatch'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:in `_call'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:114:in `call'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:in `call'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
/home/david/.gem/gems/activesupport-2.3.5/lib/active_support/whiny_nil.rb:52:in `method_missing'
/home/david/Code/git/theindielist/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:155:in `current_state'
/home/david/Code/git/theindielist/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:98:in `next_states'
/home/david/Code/git/theindielist/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:98:in `select'
/home/david/Code/git/theindielist/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:98:in `next_states'
/home/david/Code/git/theindielist/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:102:in `fire'
/home/david/Code/git/theindielist/vendor/plugins/acts_as_state_machine/lib/acts_as_state_machine.rb:210:in `register!'
/home/david/Code/git/theindielist/app/controllers/users_controller.rb:45:in `create'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in `send'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in `perform_action_without_filters'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/filters.rb:617:in `call_filters'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/david/.gem/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/david/.gem/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/flash.rb:146:in `perform_action_without_newrelic_trace'
/home/david/.gem/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:138:in `perform_action'
/home/david/.gem/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/home/david/.gem/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:122:in `perform_action'
/home/david/.gem/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:38:in `trace_method_execution_no_scope'
/home/david/.gem/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:117:in `perform_action'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in `send'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in `process_without_filters'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/filters.rb:606:in `process'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:391:in `process'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:386:in `call'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:437:in `call'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:87:in `dispatch'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:in `_call'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130
/home/david/.gem/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in `call'
/home/david/.gem/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in `call'
/home/david/.gem/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/david/.gem/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in `cache'
/home/david/.gem/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:28:in `call'
/home/david/.gem/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in `call'
/home/david/.gem/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
/home/david/.gem/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in `call'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:93:in `call'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in `call'
/home/david/.gem/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/home/david/.gem/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize'
/home/david/.gem/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:114:in `call'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:34:in `run'
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:in `call'
/home/david/.gem/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in `call'
/home/david/.gem/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call'
/home/david/.gem/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each'
/home/david/.gem/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call'
/home/david/.gem/gems/rails-2.3.5/lib/rails/rack/debugger.rb:19:in `call'
/home/david/.gem/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in `call'
/home/david/.gem/gems/rack-1.0.1/lib/rack/content_length.rb:13:in `call'
/home/david/.gem/gems/rack-1.0.1/lib/rack/chunked.rb:15:in `call'
/home/david/.gem/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:64:in `process'
/home/david/.gem/gems/mongrel-1.1.5.1/lib/mongrel.rb:159:in `process_client'
/home/david/.gem/gems/mongrel-1.1.5.1/lib/mongrel.rb:158:in `each'
/home/david/.gem/gems/mongrel-1.1.5.1/lib/mongrel.rb:158:in `process_client'
/home/david/.gem/gems/mongrel-1.1.5.1/lib/mongrel.rb:285:in `run'
/home/david/.gem/gems/mongrel-1.1.5.1/lib/mongrel.rb:285:in `initialize'
/home/david/.gem/gems/mongrel-1.1.5.1/lib/mongrel.rb:285:in `new'
/home/david/.gem/gems/mongrel-1.1.5.1/lib/mongrel.rb:285:in `run'
/home/david/.gem/gems/mongrel-1.1.5.1/lib/mongrel.rb:268:in `initialize'
/home/david/.gem/gems/mongrel-1.1.5.1/lib/mongrel.rb:268:in `new'
/home/david/.gem/gems/mongrel-1.1.5.1/lib/mongrel.rb:268:in `run'
/home/david/.gem/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:34:in `run'
/home/david/.gem/gems/rails-2.3.5/lib/commands/server.rb:111
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
Request
Parameters:
{"recaptcha_response_field"=>"",
"recaptcha_challenge_field"=>"02ixZhHr-eY6THhOFFWIJwL2Vx7gEpC5BL1No6R_PnLeH98jrA9wvSej12c1ozc0MWImjDFuDUskMwUbydcHTWC3g7X2JPidvsXJq6ykCyN60q3Po1id2FeLdlqhh2fFquF5n1g0yyD8t2i9jbO4aRogKZaxD9Q90twAczQtItVyv6J618hmglclftEcp9-eZJby8g2hv48aBXJeweBOLrCsPTmOcCkBoBXJljw5Ps1Ny29jy-bLb6ym_e4Id8xFZtd0_xkAeIjUtnFZAA4_YCOL5PDEsB",
"commit"=>"Sign up",
"authenticity_token"=>"8L9V1kiDZPj2LcakRRU53lRilg0UEQntDAqG3zq8P5g=",
"user"=>{"nickname"=>"david",
"password_confirmation"=>"secret",
"password"=>"secret",
"email"=>"blah@dblah.com"}}
Show session dump
---
Response
Headers:
{"Content-Type"=>"",
"Set-Cookie"=>["auth_token=; path=/; expires=Thu,
01-Jan-1970 00:00:00 GMT"],
"Cache-Control"=>"no-cache"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment