Skip to content

Instantly share code, notes, and snippets.

@nicedawg
Created February 22, 2020 23:18
Show Gist options
  • Save nicedawg/5fba18cfbb76e40c21b915b5ae7323e2 to your computer and use it in GitHub Desktop.
Save nicedawg/5fba18cfbb76e40c21b915b5ae7323e2 to your computer and use it in GitHub Desktop.
[Beginning Rails 6] Listing 8-7. Adding Comments to routes.rb in config/routes.rb
Rails.application.routes.draw do
root to: "articles#index"
resources :articles do
resources :comments
end
resources :users
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment