app/helpers/search_helper.rb
# Autocomplete results for various settings pages
Autocomplete results for various settings pages
Autocomplete results for various settings pages
def default_autocomplete
    [
      { label: "我的配置文件", url: profile_path },
      { label: "我的SSH密钥",         url: profile_keys_path },
      { label: "我的控制面板",        url: root_path },
      { label: "管理员部分",       url: admin_root_path },
    ]
  end
def default_autocomplete [ { label : "我的配置文件", url: profi l _pa t  }, { label : "我的SSH密钥",        fil e keys_path }, { label : "我的控制面板",        url : th  } { label : "管理员部分",       ur l _ro o _path }, ] end
Autocomplete results for various settings pages
Autocomplete results for various settings pages