def add_search_to_params(search)
      if !search.empty?
        pars = search[1..-1].split('&')

        pars.each do |par|
          pair = par.split('=')
          @params[ pair[0] ] = pair[1] if pair.length == 2
        end
      end
    end
def add_search_to_params(search)
      if !search.empty?
        pars = search[1..-1].split('&')

        pars.each do |par|
          pair = par.split('=')
          @params[ pair[0] ] = pair[1] if pair.length == 2
        end
      end
    end
Internal method to split search parameters

 @param [String] search Url search parameters