daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Jan 14th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ActiveRecord::UnknownAttributeError in PresencasController#create
  2.  
  3. unknown attribute: professor_ids
  4.  
  5. RAILS_ROOT: /home/alexandre/consulta_pontuacao
  6. Application Trace | Framework Trace | Full Trace
  7.  
  8. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/base.rb:2746:in `attributes='
  9. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/base.rb:2742:in `each'
  10. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/base.rb:2742:in `attributes='
  11. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/base.rb:2438:in `initialize'
  12. /home/alexandre/consulta_pontuacao/app/controllers/presencas_controller.rb:44:in `new'
  13. /home/alexandre/consulta_pontuacao/app/controllers/presencas_controller.rb:44:in `create'
  14.  
  15. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/base.rb:2746:in `attributes='
  16. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/base.rb:2742:in `each'
  17. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/base.rb:2742:in `attributes='
  18. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/base.rb:2438:in `initialize'
  19. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/base.rb:1331:in `send'
  20. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/base.rb:1331:in `perform_action_without_filters'
  21. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
  22. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
  23. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
  24. /home/alexandre/consulta_pontuacao/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
  25. /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
  26. /home/alexandre/consulta_pontuacao/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
  27. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
  28. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
  29. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/flash.rb:146:in `perform_action'
  30. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `send'
  31. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `process_without_filters'
  32. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process'
  33. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process'
  34. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call'
  35. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:437:in `call'
  36. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in `dispatch'
  37. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in `_call'
  38. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
  39. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
  40. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
  41. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
  42. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
  43. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
  44. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
  45. /usr/lib/ruby/gems/1.8/gems/pdfkit-0.4.6/lib/pdfkit/middleware.rb:14:in `call'
  46. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in `call'
  47. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
  48. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call'
  49. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'
  50. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:93:in `call'
  51. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in `call'
  52. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
  53. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize'
  54. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
  55. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:114:in `call'
  56. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/reloader.rb:34:in `run'
  57. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:108:in `call'
  58. /home/alexandre/consulta_pontuacao/vendor/rails/railties/lib/rails/rack/static.rb:31:in `call'
  59. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call'
  60. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each'
  61. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call'
  62. /home/alexandre/consulta_pontuacao/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'
  63. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/content_length.rb:13:in `call'
  64. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/chunked.rb:15:in `call'
  65. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:64:in `process'
  66. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
  67. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
  68. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
  69. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
  70. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
  71. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
  72. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
  73. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
  74. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
  75. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
  76. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:34:in `run'
  77. /home/alexandre/consulta_pontuacao/vendor/rails/railties/lib/commands/server.rb:111
  78. /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
  79. /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
  80. script/server:3
  81. /usr/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.1/lib/ruby-debug.rb:96:in `debug_load'
  82. /usr/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.1/lib/ruby-debug.rb:96:in `main'
  83. /usr/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.1/bin/rdebug-ide:76
  84.  
  85. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/base.rb:2746:in `attributes='
  86. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/base.rb:2742:in `each'
  87. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/base.rb:2742:in `attributes='
  88. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/base.rb:2438:in `initialize'
  89. /home/alexandre/consulta_pontuacao/app/controllers/presencas_controller.rb:44:in `new'
  90. /home/alexandre/consulta_pontuacao/app/controllers/presencas_controller.rb:44:in `create'
  91. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/base.rb:1331:in `send'
  92. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/base.rb:1331:in `perform_action_without_filters'
  93. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
  94. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
  95. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
  96. /home/alexandre/consulta_pontuacao/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
  97. /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
  98. /home/alexandre/consulta_pontuacao/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
  99. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
  100. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
  101. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/flash.rb:146:in `perform_action'
  102. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `send'
  103. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `process_without_filters'
  104. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process'
  105. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process'
  106. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call'
  107. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:437:in `call'
  108. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in `dispatch'
  109. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in `_call'
  110. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
  111. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
  112. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
  113. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
  114. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
  115. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
  116. /home/alexandre/consulta_pontuacao/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
  117. /usr/lib/ruby/gems/1.8/gems/pdfkit-0.4.6/lib/pdfkit/middleware.rb:14:in `call'
  118. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in `call'
  119. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
  120. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call'
  121. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'
  122. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:93:in `call'
  123. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in `call'
  124. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
  125. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize'
  126. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
  127. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:114:in `call'
  128. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/reloader.rb:34:in `run'
  129. /home/alexandre/consulta_pontuacao/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:108:in `call'
  130. /home/alexandre/consulta_pontuacao/vendor/rails/railties/lib/rails/rack/static.rb:31:in `call'
  131. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call'
  132. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each'
  133. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call'
  134. /home/alexandre/consulta_pontuacao/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'
  135. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/content_length.rb:13:in `call'
  136. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/chunked.rb:15:in `call'
  137. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:64:in `process'
  138. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
  139. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
  140. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
  141. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
  142. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
  143. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
  144. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
  145. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
  146. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
  147. /home/alexandre/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
  148. /home/alexandre/.gem/ruby/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:34:in `run'
  149. /home/alexandre/consulta_pontuacao/vendor/rails/railties/lib/commands/server.rb:111
  150. /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
  151. /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
  152. script/server:3
  153. /usr/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.1/lib/ruby-debug.rb:96:in `debug_load'
  154. /usr/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.1/lib/ruby-debug.rb:96:in `main'
  155. /usr/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.1/bin/rdebug-ide:76
  156. /usr/bin/rdebug-ide:19:in `load'
  157. /usr/bin/rdebug-ide:19
  158.  
  159. Request
  160.  
  161. Parameters:
  162.  
  163. {"commit"=>"Create",
  164.  "presenca"=>{"periodo_letivo"=>"777",
  165.  "unidade_id"=>"52",
  166.  "professor_ids"=>["1162",
  167.  "1163",
  168.  "1168",
  169.  "1169"]},
  170.  "authenticity_token"=>"xWikWSGBFZaqcuUEELMoHXSdac2JEyzldsVzGtdbxUM="}
  171.  
  172. Show session dump
  173.  
  174. ---
  175.  
  176. Response
  177.  
  178. Headers:
  179.  
  180. {"Content-Type"=>"",
  181.  "Cache-Control"=>"no-cache"}
RAW Paste Data
Top