6.3 Adding a Route for Comments

As with the welcome controller, we will need to add a route so that
Rails knows where we would like to navigate to see comments. Open up the
config/routes.rb file again, and edit it as follows:

resources :posts do
  resources :comments
end

This creates comments as a nested resource within posts. This is another
part of capturing the hierarchical relationship that exists between
posts and comments.