0
真實服務器上部署我的應用程序後Ubuntu的+阿帕奇+客運我的站點設在那裏http://192.168.56.101:8080/sales_bank/public/和所有的作品,但當我從軌道管理員註銷登錄http://192.168.56.101:8080/sales_bank/public/admin我重定向到http://192.168.56.101:8080/users/sign_out但我沒有這個潰敗我有這個http://192.168.56.101:8080/sales_bank/public/users/sign_out。我不明白我可以如何從rails admin註銷按鈕更改log_out路徑。Rails的管理+設計不能註銷
的routes.rb
mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'
devise_scope :user do
match "registr" => "devise/registrations#new", as: "reg"
match "logout" => "devise/sessions#destroy", as: "logout"
match "users/sign_out" => "devise/sessions#destroy", as: "logout"
end
還需要添加'config.current_user_method(&:current_admin)' –