Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 30th, 2012  |  syntax: None  |  size: 8.17 KB  |  views: 39  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. NoMethodError in ImportsController#create
  2.  
  3. private method `gets' called for #<Paperclip::UploadedFileAdapter:0x166f285c>
  4. Rails.root: /home/neilmarion/ROR/projects/missionhub
  5.  
  6. Application Trace | Framework Trace | Full Trace
  7. /home/neilmarion/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/csv.rb:1851:in `block in shift'
  8. /home/neilmarion/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/csv.rb:1849:in `loop'
  9. /home/neilmarion/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/csv.rb:1849:in `shift'
  10. app/models/import.rb:69:in `parse_headers'
  11. activesupport (3.2.3) lib/active_support/callbacks.rb:429:in `_run__134729055__save__561628577__callbacks'
  12. activesupport (3.2.3) lib/active_support/callbacks.rb:405:in `__run_callback'
  13. activesupport (3.2.3) lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
  14. activesupport (3.2.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
  15. activerecord (3.2.3) lib/active_record/callbacks.rb:264:in `create_or_update'
  16. activerecord (3.2.3) lib/active_record/persistence.rb:84:in `save'
  17. activerecord (3.2.3) lib/active_record/validations.rb:50:in `save'
  18. activerecord (3.2.3) lib/active_record/attribute_methods/dirty.rb:22:in `save'
  19. activerecord (3.2.3) lib/active_record/transactions.rb:241:in `block (2 levels) in save'
  20. activerecord (3.2.3) lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
  21. activerecord (3.2.3) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
  22. activerecord (3.2.3) lib/active_record/transactions.rb:208:in `transaction'
  23. deadlock_retry (1.2.0) lib/deadlock_retry.rb:31:in `transaction_with_deadlock_handling'
  24. activerecord (3.2.3) lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
  25. activerecord (3.2.3) lib/active_record/transactions.rb:241:in `block in save'
  26. activerecord (3.2.3) lib/active_record/transactions.rb:252:in `rollback_active_record_state!'
  27. activerecord (3.2.3) lib/active_record/transactions.rb:240:in `save'
  28. app/controllers/imports_controller.rb:19:in `create'
  29. actionpack (3.2.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
  30. actionpack (3.2.3) lib/abstract_controller/base.rb:167:in `process_action'
  31. actionpack (3.2.3) lib/action_controller/metal/rendering.rb:10:in `process_action'
  32. actionpack (3.2.3) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
  33. activesupport (3.2.3) lib/active_support/callbacks.rb:535:in `_run__599144114__process_action__391694979__callbacks'
  34. activesupport (3.2.3) lib/active_support/callbacks.rb:405:in `__run_callback'
  35. activesupport (3.2.3) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
  36. activesupport (3.2.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
  37. actionpack (3.2.3) lib/abstract_controller/callbacks.rb:17:in `process_action'
  38. actionpack (3.2.3) lib/action_controller/metal/rescue.rb:29:in `process_action'
  39. actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
  40. activesupport (3.2.3) lib/active_support/notifications.rb:123:in `block in instrument'
  41. activesupport (3.2.3) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  42. activesupport (3.2.3) lib/active_support/notifications.rb:123:in `instrument'
  43. actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
  44. actionpack (3.2.3) lib/action_controller/metal/params_wrapper.rb:205:in `process_action'
  45. activerecord (3.2.3) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
  46. actionpack (3.2.3) lib/abstract_controller/base.rb:121:in `process'
  47. actionpack (3.2.3) lib/abstract_controller/rendering.rb:45:in `process'
  48. actionpack (3.2.3) lib/action_controller/metal.rb:203:in `dispatch'
  49. actionpack (3.2.3) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
  50. actionpack (3.2.3) lib/action_controller/metal.rb:246:in `block in action'
  51. actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:73:in `call'
  52. actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
  53. actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:36:in `call'
  54. journey (1.0.3) lib/journey/router.rb:68:in `block in call'
  55. journey (1.0.3) lib/journey/router.rb:56:in `each'
  56. journey (1.0.3) lib/journey/router.rb:56:in `call'
  57. actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:600:in `call'
  58. omniauth (1.1.0) lib/omniauth/strategy.rb:177:in `call!'
  59. omniauth (1.1.0) lib/omniauth/strategy.rb:157:in `call'
  60. omniauth (1.1.0) lib/omniauth/strategy.rb:177:in `call!'
  61. omniauth (1.1.0) lib/omniauth/strategy.rb:157:in `call'
  62. /home/neilmarion/.rvm/gems/ruby-1.9.3-head@missionhub-p4/bundler/gems/rack-oauth2-server-96860b070f61/lib/rack/oauth2/server.rb:230:in `call'
  63. airbrake (3.0.9) lib/airbrake/rack.rb:27:in `call'
  64. client_side_validations (3.1.4) lib/client_side_validations/middleware.rb:18:in `call'
  65. warden (1.1.1) lib/warden/manager.rb:35:in `block in call'
  66. warden (1.1.1) lib/warden/manager.rb:34:in `catch'
  67. warden (1.1.1) lib/warden/manager.rb:34:in `call'
  68. actionpack (3.2.3) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
  69. rack (1.4.1) lib/rack/etag.rb:23:in `call'
  70. rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
  71. actionpack (3.2.3) lib/action_dispatch/middleware/head.rb:14:in `call'
  72. actionpack (3.2.3) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
  73. actionpack (3.2.3) lib/action_dispatch/middleware/flash.rb:242:in `call'
  74. rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
  75. rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
  76. actionpack (3.2.3) lib/action_dispatch/middleware/cookies.rb:338:in `call'
  77. activerecord (3.2.3) lib/active_record/query_cache.rb:64:in `call'
  78. activerecord (3.2.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:467:in `call'
  79. actionpack (3.2.3) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
  80. activesupport (3.2.3) lib/active_support/callbacks.rb:405:in `_run__294291648__call__561628577__callbacks'
  81. activesupport (3.2.3) lib/active_support/callbacks.rb:405:in `__run_callback'
  82. activesupport (3.2.3) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
  83. activesupport (3.2.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
  84. actionpack (3.2.3) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  85. rails-dev-tweaks (0.6.1) lib/rails_dev_tweaks/granular_autoload/middleware.rb:34:in `call'
  86. actionpack (3.2.3) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
  87. actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
  88. actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  89. railties (3.2.3) lib/rails/rack/logger.rb:26:in `call_app'
  90. railties (3.2.3) lib/rails/rack/logger.rb:16:in `call'
  91. actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  92. rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
  93. rack (1.4.1) lib/rack/runtime.rb:17:in `call'
  94. activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  95. rack (1.4.1) lib/rack/lock.rb:15:in `call'
  96. actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in `call'
  97. airbrake (3.0.9) lib/airbrake/user_informer.rb:12:in `call'
  98. railties (3.2.3) lib/rails/engine.rb:479:in `call'
  99. railties (3.2.3) lib/rails/application.rb:220:in `call'
  100. rack (1.4.1) lib/rack/content_length.rb:14:in `call'
  101. railties (3.2.3) lib/rails/rack/log_tailer.rb:14:in `call'
  102. rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
  103. /home/neilmarion/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
  104. /home/neilmarion/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
  105. /home/neilmarion/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
  106. Request
  107.  
  108. Parameters:
  109.  
  110. {"utf8"=>"✓",
  111.  "authenticity_token"=>"AkapRBOgq3J0Z4E5FAxKIoJMnkDywK+CFEIHNvJ4uw4=",
  112.  "import"=>{"upload"=>#<ActionDispatch::Http::UploadedFile:0x15f9783c @original_filename="sample.csv",
  113.  @content_type="text/csv",
  114.  @headers="Content-Disposition: form-data; name=\"import[upload]\"; filename=\"sample.csv\"\r\nContent-Type: text/csv\r\n",
  115.  @tempfile=#<File:/tmp/RackMultipart20120430-2379-m2e0om>>},
  116.  "commit"=>"Import Contact"}
  117. Show session dump
  118.  
  119. Show env dump
  120.  
  121. Response
  122.  
  123. Headers:
  124.  
  125. None
clone this paste RAW Paste Data