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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -