davidpdrsn / CardistryIO

The cardistry community of the future
cardistry.io
8 stars 4 forks source link

ActionView::Template::Error: undefined method `follower' for nil:NilClass #214

Closed davidpdrsn closed 8 years ago

davidpdrsn commented 8 years ago

View details in Rollbar: https://rollbar.com/CardistryIO/CardistryIO/items/62/


NoMethodError: undefined method `follower' for nil:NilClass
  File "/home/cardistryio/cardistryio/releases/20160831140542/app/models/notification.rb", line 42, in subject_for_link
  File "/home/cardistryio/cardistryio/releases/20160831140542/app/views/application/_notifications_dropdown.haml", line 20, in block in _app_views_application__notifications_dropdown_haml___1729512355684961410_70241318525260
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/relation/delegation.rb", line 38, in each
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/relation/delegation.rb", line 38, in each
  File "/home/cardistryio/cardistryio/releases/20160831140542/app/views/application/_notifications_dropdown.haml", line 18, in _app_views_application__notifications_dropdown_haml___1729512355684961410_70241318525260
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/template.rb", line 158, in block in render
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb", line 166, in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/template.rb", line 348, in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/template.rb", line 156, in render
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/renderer/partial_renderer.rb", line 343, in render_partial
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/renderer/partial_renderer.rb", line 311, in block in render
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/renderer/abstract_renderer.rb", line 42, in block in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb", line 164, in block in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb", line 21, in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb", line 164, in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/renderer/abstract_renderer.rb", line 41, in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/renderer/partial_renderer.rb", line 310, in render
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/renderer/renderer.rb", line 47, in render_partial
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/helpers/rendering_helper.rb", line 35, in render
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb", line 10, in block in render_with_haml
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers.rb", line 89, in non_haml
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb", line 10, in render_with_haml
  File "/home/cardistryio/cardistryio/releases/20160831140542/app/views/application/_buttonbar.haml", line 5, in _app_views_application__buttonbar_haml__3685927730489661353_70241318286760
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/template.rb", line 158, in block in render
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb", line 166, in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/template.rb", line 348, in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/template.rb", line 156, in render
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/renderer/partial_renderer.rb", line 343, in render_partial
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/renderer/partial_renderer.rb", line 311, in block in render
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/renderer/abstract_renderer.rb", line 42, in block in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb", line 164, in block in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb", line 21, in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb", line 164, in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/renderer/abstract_renderer.rb", line 41, in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/renderer/partial_renderer.rb", line 310, in render
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/renderer/renderer.rb", line 47, in render_partial
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/helpers/rendering_helper.rb", line 35, in render
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb", line 10, in block in render_with_haml
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers.rb", line 89, in non_haml
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb", line 10, in render_with_haml
  File "/home/cardistryio/cardistryio/releases/20160831140542/app/views/layouts/application.haml", line 26, in _app_views_layouts_application_haml___2427534335175263550_70241507861840
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/template.rb", line 158, in block in render
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb", line 166, in instrument
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/acti