我需要从此路线中删除索引操作。这是我的原始代码:
map.resources :pages, :member => { :confirm_delete => "get" }, :new => { :save_sort => :post } do |pages|
pages.resources :pages
pages.resources :sections
end
我试过这个(注意有 2 :except 选项,我也单独尝试过)但它不起作用:
map.resources :pages, :member => { :confirm_delete => "get" }, :new => { :save_sort => :post }, :except => [:index] do |pages|
pages.resources :pages, :except => [:index]
pages.resources :sections
end
有什么建议吗?