Giv开发者_JAVA技巧en the following code:
resources :subjects do
resources :partipicants
end
I want to route /subjects/x/partipicants etc
But I do not want to route /subjects etc. (i.e. the regular outer resource).
Anyone know how to pull this off cleanly?
Jack
You can try this:
resources :subjects, :only => [] do
resources :partipicants
end
精彩评论