ruby on rails - Does shallow nesting work for resources nesting 2 levels deep? -
i have comments belonging answers, , answers belonging questions.
i know shouldn't nesting 2 levels deep, shallow nesting work this?
shallow resources :questions resources :comments resources :answers end end
would allow paths executable?
shallow nesting specifically designed resources nesting 2 levels deep.
read guide, 2.7.2 shallow nesting (scroll down bit), , @ examples , generated routes tables. decide if works you.
Comments
Post a Comment