「コア」エンジンにデバイスをインストールしました。ログアウトのリンクは次のとおりです。core.destroy_user_session_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'
何か案は?「admin」名前空間内でメソッドを呼び出しているような気がするので、メソッドが見つかりません。この場合、どうすれば修正できますか?
ありがとう!