0
我試圖建立一個嵌套的資源在我的路線配置,但我不能工作了問題所在。問題與路由在Rails的嵌套資源
這裏是我的路由配置的相關代碼
resources :positions, :only => [:new,:create,:edit,:update,:destroy]
resources :etkh_profiles, :path => "members", :only => [:new,:create,:show,:index] do
resources :positions
collection do
post 'search'
end
end
它的工作原理,當我嘗試「/位置/新」但是當我嘗試「會員/位置/新」我得到這個錯誤
No route matches [GET] "/members/positions/new"
有沒有想法? 感謝您的幫助。