-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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