A ActionView::Template::Error occurred in members#show
chrismear opened this issue · comments
Chris Tucker Mear commented
undefined method title' for nil:NilClass app/views/one_click/_vote.html.haml:3:in
_app_views_one_click__vote_html_haml__175057459399347869_36463520'
Chris Tucker Mear commented
This was caused by the manual deletion of a duplicate proposal, which left a number of votes with no proposal. When the app tried to display information about the vote, it couldn't find the proposal, and threw this error.
Although deletion of proposals doesn't occur in ordinary usage, we should still guard against this by having votes attached to a proposal automatically deleted if the proposal is deleted. I'll make a separate ticket for this.