I can run pairwise api and all our idea code on my local computer without any problems but when I
try to run the code on server in production mode with passenger and nginx I get this error when trying to sign up in /question/new
Processing QuestionsController#create (for 89.184.194.3 at 2013-07-13 17:28:34) [POST]
Parameters: {"authenticity_token"=>"drXJam0gE+8lSeELpTcrMHIPoCX5Gh/1ij1RE731PeI=", "question"=>{"name"=>"Qw", "url"=>"Qwqq", "ideas"=>"", "email"=>"", "password"=>"", "information"=>""}, "default_text"=>"For example, \"Which do you want more from the student government?\"", "default_text2"=>"studentgovernment", "default_text3"=>"Add your own ideas here...\r\n\r\nFor example:\r\nMore hammocks on campus\r\nImprove student advising\r\nMore outdoor tables and benches\r\nVideo game tournaments\r\nStart late dinner at 8PM\r\nLower textbook prices\r\nBring back parking for sophomores"}
CLICKSTREAM: questions#create by Session 758c2f7c008dcafc01475005606c4053 (not logged in)
NoMethodError (undefined method `[]' for nil:NilClass):
vendor/ruby/1.9.1/gems/activeresource-2.3.18/lib/active_resource/base.rb:414:in `prefix'
vendor/ruby/1.9.1/gems/activeresource-2.3.18/lib/active_resource/base.rb:423:in `prefix_source'
vendor/ruby/1.9.1/gems/activeresource-2.3.18/lib/active_resource/base.rb:687:in `prefix_parameters'
vendor/ruby/1.9.1/gems/activeresource-2.3.18/lib/active_resource/base.rb:702:in `block in split_options'
vendor/ruby/1.9.1/gems/activeresource-2.3.18/lib/active_resource/base.rb:700:in `each'
vendor/ruby/1.9.1/gems/activeresource-2.3.18/lib/active_resource/base.rb:700:in `split_options'
vendor/ruby/1.9.1/gems/activeresource-2.3.18/lib/active_resource/base.rb:1150:in `split_options'
vendor/ruby/1.9.1/gems/activeresource-2.3.18/lib/active_resource/base.rb:1026:in `load'
vendor/ruby/1.9.1/gems/activeresource-2.3.18/lib/active_resource/base.rb:726:in `initialize'
app/controllers/questions_controller.rb:1070:in `new'
app/controllers/questions_controller.rb:1070:in `create'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in `perform_action'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/filters.rb:617:in `call_filters'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/flash.rb:151:in `perform_action_with_flash'
vendor/ruby/1.9.1/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:270:in `block in perform_action_with_newrelic_trace'
vendor/ruby/1.9.1/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/method_tracer.rb:240:in `trace_execution_scoped'
vendor/ruby/1.9.1/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:263:in `perform_action_with_newrelic_trace'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/base.rb:532:in `process'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/filters.rb:606:in `process_with_filters'
vendor/ruby/1.9.1/gems/compass-rails-1.0.3/lib/compass-rails/railties/2_3.rb:9:in `process_with_compass'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/base.rb:391:in `process'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/base.rb:386:in `call'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/routing/route_set.rb:438:in `call'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:87:in `dispatch'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:121:in `_call'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'
vendor/ruby/1.9.1/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in `call'
vendor/ruby/1.9.1/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in `block in call'
vendor/ruby/1.9.1/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
vendor/ruby/1.9.1/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:9:in `cache'
vendor/ruby/1.9.1/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:28:in `call'
vendor/ruby/1.9.1/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
vendor/ruby/1.9.1/gems/newrelic_rpm-3.5.5.38/lib/new_relic/rack/browser_monitoring.rb:12:in `call'
vendor/ruby/1.9.1/gems/sass-3.2.1/lib/sass/plugin/rack.rb:54:in `call'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/string_coercion.rb:25:in `call'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/params_parser.rb:15:in `call'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/session/cookie_store.rb:99:in `call'
vendor/ruby/1.9.1/gems/airbrake-3.1.4/lib/airbrake/rack.rb:41:in `call'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/failsafe.rb:26:in `call'
vendor/ruby/1.9.1/gems/airbrake-3.1.4/lib/airbrake/user_informer.rb:12:in `call'
<internal:prelude>:10:in `synchronize'
vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:106:in `call'
/home/bmn/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/passenger-4.0.8/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
/home/bmn/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/passenger-4.0.8/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
/home/bmn/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/passenger-4.0.8/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
/home/bmn/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
Rendering template within layouts/application
Rendering errors/500.html.haml (500)