def parse_url_params      
      return if !Caboose.use_url_params      
      url = "#{request.fullpath}"
      url[0] = "" if url.starts_with?('/')      
      url = url.split('?')[0] if url.include?('?')      
      arr = url.split('/')      
      i = arr.count - 1
      while i >= 1 do
        k = arr[i-1]
        v = arr[i]    
        if v && v.length > 0
          v = v.gsub('%20', ' ')
          params[k] = v
        end
        i = i-2
      end      
    end
def parse_url_params      
      return if !Caboose.use_url_params      
      url = "#{request.fullpath}"
      url[0] = "" if url.starts_with?('/')      
      url = url.split('?')[0] if url.include?('?')      
      arr = url.split('/')      
      i = arr.count - 1
      while i >= 1 do
        k = arr[i-1]
        v = arr[i]    
        if v && v.length > 0
          v = v.gsub('%20', ' ')
          params[k] = v
        end
        i = i-2
      end      
    end
def parse_url_params return if ! Caboose . use_url_params url = "#{request.fullpath}" url [ 0 ] = "" if url . starts_with? ( '/' ) url = url . split ( '?' ) [ 0 ] if url . include? ( '?' ) arr = url . split ( '/' ) i = arr . count - 1 while i >= 1 do k = arr [ i - 1 ] v = arr [ i ] if v && v . length > 0 v = v . gsub ( '%20' , ' ' ) params [ k ] = v end i = i - 2 end end
Parses any parameters in the URL and adds them to the params
Parses any parameters in the URL and adds them to the params