I know that I can point nested resources to routes.rbin Rails 3 as follows:
resources :users do
resources :posts
end
However, I would like to add commentsin posts. What should I write in my file routes.rb? Is it correct? Can I store their nesting?
resources :users do
resources :posts do
resources :comments
end
end
source
share