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

review: aktualisierte Fragen kaputt #85

Closed beccy closed 11 years ago

beccy commented 11 years ago

https://keks-dev.yrden.de/admin/reviews/filter/updated

NoMethodError in Reviews#filter

Showing /srv/keks/app/views/reviews/_generic_question_list.html.erb where line #6 raised:

undefined method `get_root_categories' for #Review:0x00000005efa3d0

Extracted source (around line #6):

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

Trace of template inclusion: app/views/reviews/filter.html.erb

Rails.root: /srv/keks Application Trace | Framework Trace | Full Trace

app/views/reviews/_generic_question_list.html.erb:6:in block in _app_views_reviews__generic_question_list_html_erb___3845108955367714682_32930580' app/views/reviews/_generic_question_list.html.erb:5:ineach' 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_reviewsgeneric_question_list_html_erb___3845108955367714682_32930580' app/views/reviews/filter.html.erb:5:in `_app_views_reviews_filter_html_erb1713373335260848571_47728420'

Request

Parameters:

{"filter"=>"updated"}

Show session dump

Show env dump Response

Headers:

None