search for: zeroize_point_if_start_questioniere

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

2006 Jul 09
2
filters
...is good, until i want to reset the session to zero; i want to reset the session when a certain params variable is equal to zero - - i have a params[:question_number] in the action ( the uri looks like www.localhost:3000/polls/questioniere/1?question_number=0) so i decided to run a before_filter :zeroize_point_if_start_questioniere where i defined it def.. if params[:question_number] == 0 @session[:aquired_points] = 0 end end it didn''t work. i checked to see if the before_filter was running, and it was(i put a false in there, and the page wasn''t rendered) and i also checked to see if the params[:qu...