class ActionDispatch::Journey::Route

def score(supplied_keys)

def score(supplied_keys)
  path.required_names.each do |k|
    return -1 unless supplied_keys.include?(k)
  end
  (required_defaults.length * 2) + path.names.count { |k| supplied_keys.include?(k) }
end