3
我正在研究一個新的rails應用程序,並發現了這種情況。我需要多個資源中的相同路線,但我不想重複相同的路線。多個資源中的相同路徑
有什麼辦法乾涸這個
resources :contacts do
collection do
post :associate
delete :remove
end
end
resources :doctors do
collection do
post :associate
delete :remove
end
end
任何幫助將不勝感激。
太好了,正是我一直在尋找。我知道有些東西,但從來沒有機會使用它。 –