管理者がログインすると、メインのホームページ (つまり、管理者のダッシュボードではない) に自動的にリダイレクトされます。なぜこれを行うのか、どのように変更するのかわかりません...
ルート.rb
ActiveAdmin.routes(self)
devise_for :admin_user, ActiveAdmin::Devise.config
get "guidelines/topic"
get "guidelines/topichospital"
get "guidelines/topicspecialty"
get "guidelines/favourite"
get "profiles/show"
get "guidelines/show"
root :to => 'guidelines#index'
私のapplication_controller.rbは、ユーザーログイン後にリダイレクトするように変更されました(ただし、管理者ログインではありません)-これは問題ですか?
include PublicActivity::StoreController
protect_from_forgery
def after_sign_in_path_for(resource)
favourites_path
end
hide_action :current_user