-1
我有固定導軌2條命名空間 '管理員' 路線Rails的路線封鎖
admin.resources :orders do |order|
order.resources :attachments, :only => [:show, :destroy]
end
如何將它轉換成軌道4,5?
我有固定導軌2條命名空間 '管理員' 路線Rails的路線封鎖
admin.resources :orders do |order|
order.resources :attachments, :only => [:show, :destroy]
end
如何將它轉換成軌道4,5?
這應該工作:
resources :orders do
resources :attachments, only: [:show, :destroy]
end