daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TypeError in Polls#view
  2.  
  3. Showing app/views/polls/_list_polls_fat.rhtml where line #20 raised:
  4.  
  5. class or module required
  6.  
  7. Extracted source (around line #20):
  8.  
  9. 17:                         <li class="first"> - <%= poll.author %></li>
  10. 18:                     <% else %>
  11. 19:                         <li class="first">Votes: <%= poll.poll_votes_count %></li>
  12. 20:                         <% if logged_in? and !poll.anonymous %><li>submitted by: <%= poll.is_a? Quote ? sanitize(poll.author) : link_to(sanitize(poll.author), mypolls_user_path(poll.user_id)) %></li><% end %>
  13. 21:                         <!-- li><span>2 hours 3 minutes</span> ago</li -->
  14. 22:                     <% end %>
  15. 23:                 </ul>
  16.  
  17. Trace of template inclusion: /app/views/polls/view.rhtml
  18.  
  19. RAILS_ROOT: /data/openvote/current/config/..
  20. Application Trace | Framework Trace | Full Trace
  21.  
  22. #{RAILS_ROOT}/app/views/polls/_list_polls_fat.rhtml:20:in `is_a?'
  23. #{RAILS_ROOT}/app/views/polls/_list_polls_fat.rhtml:20:in `_run_rhtml_47app47views47polls47_list_polls_fat46rhtml'
  24. #{RAILS_ROOT}/app/views/polls/_list_polls_fat.rhtml:3:in `each'
  25. #{RAILS_ROOT}/app/views/polls/_list_polls_fat.rhtml:3:in `_run_rhtml_47app47views47polls47_list_polls_fat46rhtml'
  26. #{RAILS_ROOT}/app/views/polls/view.rhtml:12:in `_run_rhtml_47app47views47polls47view46rhtml'
  27. /usr/bin/mongrel_rails:19:in `load'
  28. /usr/bin/mongrel_rails:19
  29.  
  30. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in `send'
  31. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in `compile_and_render_template'
  32. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:301:in `render_template'
  33. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:260:in `render_file'
  34. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:275:in `render'
  35. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/partials.rb:59:in `render_partial'
  36. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:26:in `benchmark'
  37. /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure'
  38. /usr/lib64/ruby/1.8/benchmark.rb:307:in `realtime'
  39. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:26:in `benchmark'
  40. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/partials.rb:58:in `render_partial'
  41. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:287:in `render'
  42. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in `send'
  43. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in `compile_and_render_template'
  44. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:301:in `render_template'
  45. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:260:in `render_file'
  46. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:806:in `render_file'
  47. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:711:in `render_with_no_layout'
  48. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/layout.rb:247:in `render_without_benchmark'
  49. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in `render'
  50. /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure'
  51. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in `render'
  52. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1096:in `perform_action_without_filters'
  53. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in `call_filter'
  54. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:634:in `call_filter'
  55. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter'
  56. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call'
  57. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter'
  58. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:634:in `call_filter'
  59. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter'
  60. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call'
  61. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter'
  62. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter'
  63. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call'
  64. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter'
  65. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter'
  66. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call'
  67. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter'
  68. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter'
  69. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:449:in `call'
  70. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter'
  71. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'
  72. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
  73. /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure'
  74. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
  75. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in `perform_action'
  76. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `send'
  77. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `process_without_filters'
  78. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in `process_without_session_management_support'
  79. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process'
  80. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in `process'
  81. /usr/lib64/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch'
  82. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:76:in `process'
  83. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:74:in `synchronize'
  84. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:74:in `process'
  85. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:159:in `process_client'
  86. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:158:in `each'
  87. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:158:in `process_client'
  88. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `run'
  89. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `initialize'
  90. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `new'
  91. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `run'
  92. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in `initialize'
  93. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in `new'
  94. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in `run'
  95. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:282:in `run'
  96. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:281:in `each'
  97. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:281:in `run'
  98. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:128:in `run'
  99. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/command.rb:212:in `run'
  100. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:281
  101.  
  102. #{RAILS_ROOT}/app/views/polls/_list_polls_fat.rhtml:20:in `is_a?'
  103. #{RAILS_ROOT}/app/views/polls/_list_polls_fat.rhtml:20:in `_run_rhtml_47app47views47polls47_list_polls_fat46rhtml'
  104. #{RAILS_ROOT}/app/views/polls/_list_polls_fat.rhtml:3:in `each'
  105. #{RAILS_ROOT}/app/views/polls/_list_polls_fat.rhtml:3:in `_run_rhtml_47app47views47polls47_list_polls_fat46rhtml'
  106. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in `send'
  107. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in `compile_and_render_template'
  108. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:301:in `render_template'
  109. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:260:in `render_file'
  110. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:275:in `render'
  111. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/partials.rb:59:in `render_partial'
  112. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:26:in `benchmark'
  113. /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure'
  114. /usr/lib64/ruby/1.8/benchmark.rb:307:in `realtime'
  115. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:26:in `benchmark'
  116. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/partials.rb:58:in `render_partial'
  117. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:287:in `render'
  118. #{RAILS_ROOT}/app/views/polls/view.rhtml:12:in `_run_rhtml_47app47views47polls47view46rhtml'
  119. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in `send'
  120. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in `compile_and_render_template'
  121. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:301:in `render_template'
  122. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:260:in `render_file'
  123. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:806:in `render_file'
  124. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:711:in `render_with_no_layout'
  125. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/layout.rb:247:in `render_without_benchmark'
  126. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in `render'
  127. /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure'
  128. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in `render'
  129. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1096:in `perform_action_without_filters'
  130. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in `call_filter'
  131. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:634:in `call_filter'
  132. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter'
  133. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call'
  134. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter'
  135. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:634:in `call_filter'
  136. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter'
  137. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call'
  138. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter'
  139. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter'
  140. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call'
  141. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter'
  142. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter'
  143. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call'
  144. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter'
  145. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter'
  146. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:449:in `call'
  147. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter'
  148. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'
  149. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
  150. /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure'
  151. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
  152. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in `perform_action'
  153. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `send'
  154. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `process_without_filters'
  155. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in `process_without_session_management_support'
  156. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process'
  157. /usr/lib64/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in `process'
  158. /usr/lib64/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch'
  159. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:76:in `process'
  160. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:74:in `synchronize'
  161. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:74:in `process'
  162. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:159:in `process_client'
  163. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:158:in `each'
  164. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:158:in `process_client'
  165. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `run'
  166. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `initialize'
  167. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `new'
  168. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `run'
  169. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in `initialize'
  170. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in `new'
  171. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in `run'
  172. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:282:in `run'
  173. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:281:in `each'
  174. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:281:in `run'
  175. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:128:in `run'
  176. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/command.rb:212:in `run'
  177. /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:281
  178. /usr/bin/mongrel_rails:19:in `load'
  179. /usr/bin/mongrel_rails:19
  180.  
  181. Request
  182.  
  183. Parameters: {"view_by"=>"hotness"}
  184.  
  185. Show session dump
  186.  
  187. ---
  188. :user: 2
  189. :last_school: 1
  190. flash: !map:ActionController::Flash::FlashHash {}
  191.  
  192.  
  193. Response
  194. Headers: {"P3P"=>"CP=\"NOI DSP COR NID ADMa OPTa OUR NOR\"", "cookie"=>[], "Cache-Control"=>"no-cache"}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top