Guest User

Untitled

a guest
Jan 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. NameError in Sources#show
  2.  
  3. Showing sources/_source_review.html.erb where line #26 raised:
  4.  
  5. undefined local variable or method `expertise_topic_ids' for #<sourcereview:0x10b584b78>
  6.  
  7. Extracted source (around line #26):
  8.  
  9. 23: <%= h source_review.note %>
  10. 24:
  11. 25: <%- end -%>
  12. 26: <%- if !source_review.expertise_topics.blank? -%>
  13. 27:
  14. 28: This source is an expert on <%= source_review.expertise_topics.collect { |t| link_to t.name, t } * ', ' %> 29:
  15.  
  16. Trace of template inclusion: /sources/show.html.erb
  17.  
  18. RAILS_ROOT: /Users/cw/Desktop/_projects/newstrust/newstrust_new
  19. Application Trace | Framework Trace | Full Trace
  20.  
  21. vendor/rails/activerecord/lib/active_record/attribute_methods.rb:256:in `method_missing'
  22. app/models/source_review.rb:15:in `expertise_topics'
  23. app/views/sources/_source_review.html.erb:26:in `_run_erb_47app47views47sources47_source_review46html46erb'
  24. app/views/sources/show.html.erb:155:in `_run_erb_47app47views47sources47show46html46erb'
  25. app/views/sources/show.html.erb:145:in `_run_erb_47app47views47sources47show46html46erb'
  26. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process'
  27. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize'
  28. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process'
  29. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
  30. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
  31. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
  32. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
  33. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
  34. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
  35. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
  36. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
  37. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
  38. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
  39. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'
  40. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'
  41. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'
  42. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
  43. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'
  44. /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
  45.  
  46. Request
  47.  
  48. Parameters:
  49.  
  50. {"id"=>"los_angeles_times"}
  51.  
  52. Show session dump
  53. Response
  54.  
  55. Headers:
  56.  
  57. {"cookie"=>[],
  58. "Cache-Control"=>"no-cache"}
Add Comment
Please, Sign In to add comment