Ruby on rails 活动\u管理员注销链接不工作

Ruby on rails 活动\u管理员注销链接不工作,ruby-on-rails,devise,activeadmin,Ruby On Rails,Devise,Activeadmin,我已经在我的“核心”引擎上安装了Desive。注销链接是:core.destroy\u user\u session\u path 我刚刚安装了active_admin。大部分工作正常,除了注销链接。在配置文件中,我发现了以下内容: # == Logging Out # # Active Admin displays a logout link on each screen. These # settings configure the location and method u

我已经在我的“核心”引擎上安装了Desive。注销链接是:
core.destroy\u user\u session\u path

我刚刚安装了active_admin。大部分工作正常,除了注销链接。在配置文件中,我发现了以下内容:

  # == Logging Out
  #
  # Active Admin displays a logout link on each screen. These
  # settings configure the location and method used for the link.
  #
  # This setting changes the path where the link points to. If it's
  # a string, the strings is used as the path. If it's a Symbol, we
  # will call the method to return the path.
  #
  # Default:
  config.logout_link_path = "core.destroy_user_session_path".to_sym
  # config.logout_link_path = "/core/users/sign_out" --> this works!

  # This setting changes the http method used when rendering the
  # link. For example :get, :delete, :put, etc..
  #
  # Default:
   config.logout_link_method = :delete
我收到的错误消息是:

NoMethodError - undefined method `core.destroy_user_session_path' for #<ActiveAdmin::Views::TabbedNavigation:0x007f936dc8a8e0>:
  arbre (1.0.1) lib/arbre/element.rb:177:in `method_missing'
  /Users/krg07/.bundler/ruby/2.0.0/active_admin-a9949c152420/lib/active_admin/view_helpers/method_or_proc_helper.rb:56:in `call_method_or_proc_on'
NoMethodError-未定义的方法` core.destroy#u user_session_path':
arbre(1.0.1)lib/arbre/element.rb:177:in'method_missing'
/Users/krg07/.bundler/ruby/2.0.0/active_admin-a9949c152420/lib/active_admin/view_helpers/method_或_proc_helper.rb:56:in'call_method_或_proc_on'
有什么想法吗?我感觉它正在“admin”名称空间中调用该方法,因此它找不到该方法。如果是这种情况,我将如何解决


谢谢

请参阅注释“#如果它是一个符号,我们将调用该方法以返回路径。”作为“main_app.destroy_user_session_path”。to_sym是系统试图调用的符号,但由于没有出现错误,“main_app.destroy_user_session_path”单独起作用吗?抱歉,我输入的代码有点过时。我已经更新了。行是“core.destroy\u user\u session\u path”。to\u sym-to\u sym将其转换为符号。这是这样做的,以便主动_管理员不认为这是一个直接的链接。。。而不是一种方法。(我正在尝试调用url帮助器方法config.logout\u link\u path=“core.destroy\u user\u session\u path”行的结果是什么?工作正常吗?