kekshd / keks

an elearning system with basic answer types yes/no/matrix
http://keks.uni-hd.de
ISC License
10 stars 4 forks source link

NoMethodError in Reviews#need_attention #99

Closed beccy closed 10 years ago

beccy commented 10 years ago

https://www.mathi.uni-heidelberg.de/keks/admin/reviews/need_attention

breunigs commented 10 years ago

error message in question:

2013-11-22 19:58:26. [ftl] ActionView::Template::Error (undefined method get_parent_category' for nil:NilClass): 3: 4: cats = {} 5: questions.each_with_index do |q, ind| 6: roots = q.get_root_categories 7: roots.each do |r| 8: cats[r] ||= [] 9: cats[r] << q app/models/question.rb:85:inget_parent_category' app/models/question.rb:96:in get_root_categories' app/views/reviews/_generic_question_list.html.erb:6:inblock in _app_views_reviewsgeneric_question_list_html_erb2333482217816473602_46131060' app/views/reviews/_generic_question_list.html.erb:5:in each' app/views/reviews/_generic_question_list.html.erb:5:in each_with_index' app/views/reviews/_generic_question_list.html.erb:5:in _app_views_reviews__generic_question_list_html_erb__2333482217816473602_46131060' app/views/reviews/need_attention.html.erb:37:in _app_views_reviews_need_attention_html_erb___4510619335868727464_46329240' (pid:557)