在activeadmin中:当我单击删除记录并重定向到显示页面时,不会删除记录。为什么?我不明白。 5个小时前它运作成功,但现在......不工作。
我的路线:
Rails.application.routes.draw do
devise_for :users, controllers: { sessions: "sessions", registrations: "registrations" }
get 'persons/profile'
devise_for :admin_users, ActiveAdmin::Devise.config
ActiveAdmin.routes(self)
get 'persons/profile', as: 'user_root'
get 'products/search', as: 'products_search'
resources :products, only: [:index,:show]
resource :order, path: :basket, only: [:show, :update, :destroy], as: :basket do
get :form_order, as: :details
resources :order_items, only: [:create]
end
resources :order_items, only: [:destroy] do
post :increment
post :decrement
post :set_count
end
end