Displaying 1 result from an estimated 1 matches for "_qnalist".
2007 Oct 04
0
Weird active record problem - goes away with cache_classes change
...id
end
If I do this:
for q in questions
answers = q.answers
for a in answers
a.user.user_id
end
end
It works the first time, but it fails the 2nd time on with this:
ActionView::TemplateError (undefined method `user'' for #<Answer:
0x351617c>) on line #45 of app/views/lib/_qnalist.rhtml:
42: <div class="qna-a-
details">
43: <span
class="qna-a-body"><%= format_line_wrap(a.body, width, 14) %></
span><br>
44:...