search for: ipcondit

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

Did you mean: io_condit
2007 Mar 20
2
Progressive AJAX Filter
...this code to process entries in those fields: unless params[:namequery] == "" || params[:namequery].nil? conditions = "host_name LIKE \''#{@params[:namequery]}%\''" end unless params[:ipquery] == "" || params[:ipquery].nil? ipcondition = "ip_address like \''#{@params[:ipquery]}%\''" conditions = conditions.nil? ? ipcondition : "#{conditions} AND #{ipcondition}" end I then pass use those criteria to filter the collection I send to the partial which display...