Guest User

Untitled

a guest
Feb 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.20 KB | None | 0 0
  1. SyntaxError in News#index
  2.  
  3. Showing app/views/news/index.rhtml where line #10 raised:
  4.  
  5. compile error
  6. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:10: syntax error, unexpected '<'
  7. _erbout.concat " <li>"; _erbout.concat(( link_to "Recently", {:controller => 'news', :action => 'index'}, :class => ((params[:year].blank? || params[:year] == "2008")? "active" : "")></li>
  8. ^
  9. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:11: unknown regexp option - l
  10. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:11: unmatched ): /li>
  11. <li><%= link_to "2007", {:controller => 'news', :action => 'year', :id => 2007}, :class => (params[:year] == "2007" ? "active" : "") ).to_s); _erbout.concat "</
  12. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:11: syntax error, unexpected $undefined
  13. <li><%= link_to "2007", {:controller => 'news', :action => 'year', :id => 2007}, :class => (params[:year] == "2007" ? "active" : "") ).to_s); _erbout.concat "</li>\n"
  14. ^
  15. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:12: syntax error, unexpected tINTEGER, expecting ')'
  16. _erbout.concat " <li>"; _erbout.concat(( link_to "2006", {:controller => 'news', :action => 'year', :id => 2006}, :class => (params[:year] == "2006" ? "active" : "") ).to_s); _erbout.concat "</li>\n"
  17. ^
  18. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:12: syntax error, unexpected tINTEGER, expecting ')'
  19. _erbout.concat " <li>"; _erbout.concat(( link_to "2006", {:controller => 'news', :action => 'year', :id => 2006}, :class => (params[:year] == "2006" ? "active" : "") ).to_s); _erbout.concat "</li>\n"
  20. ^
  21. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:12: syntax error, unexpected tIDENTIFIER, expecting ')'
  22. _erbout.concat " <li>"; _erbout.concat(( link_to "2006", {:controller => 'news', :action => 'year', :id => 2006}, :class => (params[:year] == "2006" ? "active" : "") ).to_s); _erbout.concat "</li>\n"
  23. ^
  24. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:13: unknown regexp option - l
  25. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:13: syntax error, unexpected $undefined
  26. _erbout.concat "</ul>\n"
  27. ^
  28. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:14: syntax error, unexpected $undefined, expecting ')'
  29. _erbout.concat "\n"
  30. ^
  31. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:15: syntax error, unexpected kCLASS, expecting kDO or '{' or '('
  32. _erbout.concat "<div class=\"grand-slam nobackground\">\n"
  33. ^
  34. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:32: syntax error, unexpected kDO_BLOCK, expecting ')'
  35. _erbout.concat " "; @press_releases.each do |press_release| ; _erbout.concat "\n"
  36. ^
  37. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:38: syntax error, unexpected kEND, expecting ')'
  38. _erbout.concat " "; end ; _erbout.concat "\n"
  39. ^
  40. /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/../app/views/news/index.rhtml:82: syntax error, unexpected kEND, expecting ')'
  41.  
  42. Extracted source (around line #10):
  43.  
  44. 7: <h2><span>We&rsquo;re thrilled with the reaction users, our peers and the industry have had with FiveRuns&rsquo;</span> innovative approach to Rails application monitoring.</h2>
  45. 8:
  46. 9: <ul id="subnav">
  47. 10: <li><%= link_to "Recently", {:controller => 'news', :action => 'index'}, :class => ((params[:year].blank? || params[:year] == "2008")? "active" : "")></li>
  48. 11: <li><%= link_to "2007", {:controller => 'news', :action => 'year', :id => 2007}, :class => (params[:year] == "2007" ? "active" : "") %></li>
  49. 12: <li><%= link_to "2006", {:controller => 'news', :action => 'year', :id => 2006}, :class => (params[:year] == "2006" ? "active" : "") %></li>
  50. 13: </ul>
  51.  
  52. Trace of template inclusion: /app/views/news/index.rhtml
  53.  
  54. RAILS_ROOT: /home/lwallenstein/workspace/clients/fiveruns/dotcom/config/..
  55. Application Trace | Framework Trace | Full Trace
  56.  
  57. #{RAILS_ROOT}/app/views/news/index.rhtml:82:in `compile_template'
  58. /usr/bin/thin:19:in `load'
  59. /usr/bin/thin:19
  60.  
  61. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:319:in `compile_and_render_template'
  62. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template'
  63. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'
  64. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:806:in `render_file'
  65. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:711:in `render_with_no_layout'
  66. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/layout.rb:247:in `render_without_benchmark'
  67. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
  68. /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
  69. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
  70. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:1096:in `perform_action_without_filters'
  71. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:632:in `call_filter'
  72. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
  73. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
  74. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
  75. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'
  76. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
  77. /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
  78. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
  79. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in `perform_action'
  80. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:430:in `send'
  81. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:430:in `process_without_filters'
  82. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in `process_without_session_management_support'
  83. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in `process'
  84. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:330:in `process'
  85. #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:41:in `dispatch'
  86. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/rack/adapter/rails.rb:54:in `serve_rails'
  87. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/rack/adapter/rails.rb:74:in `call'
  88. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/connection.rb:59:in `pre_process'
  89. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/connection.rb:50:in `process'
  90. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/connection.rb:35:in `receive_data'
  91. /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/lib/eventmachine.rb:224:in `run_machine'
  92. /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/lib/eventmachine.rb:224:in `run'
  93. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/backends/base.rb:45:in `start'
  94. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/server.rb:146:in `start'
  95. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/controllers/controller.rb:79:in `start'
  96. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/runner.rb:166:in `send'
  97. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/runner.rb:166:in `run_command'
  98. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/runner.rb:136:in `run!'
  99. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/bin/thin:6
  100.  
  101. #{RAILS_ROOT}/app/views/news/index.rhtml:82:in `compile_template'
  102. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:319:in `compile_and_render_template'
  103. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template'
  104. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'
  105. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:806:in `render_file'
  106. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:711:in `render_with_no_layout'
  107. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/layout.rb:247:in `render_without_benchmark'
  108. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
  109. /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
  110. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
  111. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:1096:in `perform_action_without_filters'
  112. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:632:in `call_filter'
  113. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
  114. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
  115. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
  116. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'
  117. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
  118. /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
  119. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
  120. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in `perform_action'
  121. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:430:in `send'
  122. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:430:in `process_without_filters'
  123. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in `process_without_session_management_support'
  124. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in `process'
  125. #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:330:in `process'
  126. #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:41:in `dispatch'
  127. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/rack/adapter/rails.rb:54:in `serve_rails'
  128. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/rack/adapter/rails.rb:74:in `call'
  129. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/connection.rb:59:in `pre_process'
  130. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/connection.rb:50:in `process'
  131. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/connection.rb:35:in `receive_data'
  132. /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/lib/eventmachine.rb:224:in `run_machine'
  133. /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/lib/eventmachine.rb:224:in `run'
  134. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/backends/base.rb:45:in `start'
  135. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/server.rb:146:in `start'
  136. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/controllers/controller.rb:79:in `start'
  137. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/runner.rb:166:in `send'
  138. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/runner.rb:166:in `run_command'
  139. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/runner.rb:136:in `run!'
  140. /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/bin/thin:6
  141. /usr/bin/thin:19:in `load'
  142. /usr/bin/thin:19
  143.  
  144. Request
  145.  
  146. Parameters: None
  147.  
  148. Show session dump
  149.  
  150. ---
  151. :user_id: 14
  152. :requested_page:
  153. flash: !map:ActionController::Flash::FlashHash {}
  154.  
  155.  
  156. Response
  157. Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}
Add Comment
Please, Sign In to add comment