Displaying 3 results from an estimated 3 matches for "incidentsearch".
2006 Aug 08
3
params object nil in controller action
...storing
the user''s search criteria (params) in session and then reusing those
params instead of request params when user clicks on "Back to Search Results
link". here is my code
________________________________________________________________________
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]....
2006 Aug 09
1
strange - params.nil? true in controller
...s my code
______________________________________________________________________________________________________________
*def* search
logger.debug("params.nil?=#{params.nil?}") # this prints ''params.nil?=*false''
<=== params is NOT nil at this point*
*if* session[*:incidentSearch*].nil? *or* session[*:incidentSearch*].empty?
params.*each*{|k,v| logger.debug("key: #{k}, 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...
2006 Aug 12
0
params object NULL/nil in controller - is this a bug?
....... see below
______________________________________________________________________________________________________________
def search
logger.debug("params.nil?=#{params.nil?}") # this prints
''params.nil?=false '' <=== params is NOT nil at this point
if session[:incidentSearch].nil? or session[:incidentSearch].empty?
params.each{|k,v| logger.debug("key: #{k}, 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 p...