3
我正在研究一个新的rails应用程序,并发现了这种情况。我需要多个资源中的相同路线,但我不想重复相同的路线。多个资源中的相同路径
有什么办法干涸这个
resources :contacts do
collection do
post :associate
delete :remove
end
end
resources :doctors do
collection do
post :associate
delete :remove
end
end
任何帮助将不胜感激。
太好了,正是我一直在寻找。我知道有些东西,但从来没有机会使用它。 –