search for: surveyhelp

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

Did you mean: surveyhelper
2007 Nov 10
2
Problem with view spec - works inside the browser but spec fails with nil object
....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_candidate'', :locals => {:question => question}) end The :locals Hash has :question as a key, and that is...