davidpdrsn / CardistryIO

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

ActionView::Template::Error: undefined method `name' for nil:NilClass #225

Closed davidpdrsn closed 8 years ago

davidpdrsn commented 8 years ago

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


NoMethodError: undefined method `name' for nil:NilClass
  File "/home/cardistryio/cardistryio/releases/20160902085723/app/models/notification.rb", line 26, in text
  File "/home/cardistryio/cardistryio/releases/20160902085723/app/views/application/_notifications_dropdown.haml", line 22, in block (2 levels) in _app_views_application__notifications_dropdown_haml__1738328886154988085_70359522074420
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers.rb", line 368, in block in capture_haml
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers.rb", line 608, in with_haml_buffer
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers.rb", line 364, in capture_haml
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb", line 61, in capture_haml_with_haml_xss
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb", line 45, in capture_with_haml
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/helpers/tag_helper.rb", line 107, in content_tag
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb", line 69, in content_tag_with_haml
  File "/home/cardistryio/cardistryio/shared/bundle/ruby/2.3.0/gems/actionview-5.0.0.1/lib/action_view/helpers/url_helper.rb", line 199, in link_to
  File "/home/cardistryio/cardistryio/releases/20160902085723/app/views/application/_notifications_dropdown.haml", line 20, in block in _app_views_application__notifications_dropdown_haml__1738328886154988085_70359522074420
  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/20160902085723/app/views/application/_notifications_dropdown.haml", line 18, in _app_views_application__notifications_dropdown_haml__1738328886154988085_70359522074420
  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/20160902085723/app/views/application/_buttonbar.haml", line 5, in _app_views_application__buttonbar_haml___1118237938171628092_70359527223460
  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_vi