search for: routenum

Displaying 3 results from an estimated 3 matches for "routenum".

2006 Aug 08
3
params object nil in controller action
..._____________________________________ def search if session[:incidentSearch].nil? or session[:incidentSearch].empty? # if no search criteria found in session logger.debug("if params.nil?=#{params.nil?}") logger.debug("NOT FOUND :incidentSearch") if (params[:routeNum].nil? or params[:routeNum].empty?) and (params[:incidentId].nil? or params[:incidentId].empty?) and (params[:startDateTime].nil? or params[:startDateTime].empty?) and (params[:endDateTime].nil? or params[:endDateTime].empty?) flash[:warning] = "Don'...
2006 Aug 09
1
strange - params.nil? true in controller
...value: #{v}")} #this *prints the key value pairs perfectly* logger.debug("params=#{params.to_s}") # this prints ''params.nil?=*false*'' <=== *params is NOT nil at this point* # s=params.dup # params=s # logger.debug("params=#{s.to_s}") *if* params[*:routeNum*].nil? *or* params[*:routeNum*].empty? <=== *params is NOT nil at this point* flash[*:warning*] = "Don''t try stupid things....Enter some search criteria." redirect_to *:back* *and* *return* ***elsif* !params[*:routeNum*].empty? and one more condition flash[*:warning*] = &...
2006 Aug 12
0
params object NULL/nil in controller - is this a bug?
...quot;)} #this prints the key value pairs perfectly logger.debug("params=#{params.to_s}") # this prints ''params.nil?=false'' <=== params is NOT nil at this point # s=params.dup # params=s # logger.debug("params=#{s.to_s}") if params[:routeNum].nil? or params[:routeNum].empty? <=== params is NOT nil at this point flash[:warning] = "Don''t try stupid things....Enter some search criteria." redirect_to :back and return elsif !params[:routeNum ].empty? and one more condition flash[:warni...