search for: render_quest

Displaying 1 result from an estimated 1 matches for "render_quest".

2007 Nov 10
2
Problem with view spec - works inside the browser but spec fails with nil object
...ach { |c| @configurations[c.name.to_sym] = c.value } @questions = {} Question.find(:all).each { |q| @questions[q.position] = q } end Here''s the piece of code inside the "show.rhtml" template that''s calling the helper method that will cause that error: <%= render_question(@questions[4]) %> Here''s the "render_question" method implementation, inside the SurveyHelper class (invoking "render" seems to be the problem, but I don''t know why): def render_question(question) render(:partial => ''question_for_candi...