def replace_symbols(script_name, *args)
    args_new = []
    args_copy = args.clone

    url = args[0].clone
    modifiers = args_copy[1]
    if modifiers.class == Hash
      modifiers.delete_if do |key, value|
        delete = url.include? (":" + key.to_s)
        if delete
          url.sub!( (":" + key.to_s), value.to_s )
        end
        delete
      end
    end

    i = 1
    result = [url]
    while args_copy[i]
      unless args_copy[i].empty?

        if args_copy[i].class == Array
          value = args_copy[i]
        else
          value = [args_copy[i]]
        end

        if args_copy[i] != '/?' && url =~ /\*/
          url.sub!("*", value.join(''))
        else
          result.concat(value)
        end

      end
      i+= 1
    end
    result
  end
def replace_symbols(script_name, *args)
    args_new = []
    args_copy = args.clone

    url = args[0].clone
    modifiers = args_copy[1]
    if modifiers.class == Hash
      modifiers.delete_if do |key, value|
        delete = url.include? (":" + key.to_s)
        if delete
          url.sub!( (":" + key.to_s), value.to_s )
        end
        delete
      end
    end

    i = 1
    result = [url]
    while args_copy[i]
      unless args_copy[i].empty?

        if args_copy[i].class == Array
          value = args_copy[i]
        else
          value = [args_copy[i]]
        end

        if args_copy[i] != '/?' && url =~ /\*/
          url.sub!("*", value.join(''))
        else
          result.concat(value)
        end

      end
      i+= 1
    end
    result
  end
Replace simbols in url for