0
我有兩個具有has-many/belongs-to關係的模型。該航線是嵌套的,我有這個在我的routes.rb:自定義Rails路徑以刪除模型名稱
resources :threads do
resources :posts
end
所以我得到這樣example.org/threads/147/posts/372 URL和example.org/threads/298等。
我該如何改變,以便URL更像example.org/147/372,模型隱含?