2021-06-23から1日間の記事一覧
routes.rb #--- 略 --- resources :posts do resources :comments end rails routes prefix HTTPメソッド パス アクション post_comments GET /posts/:post_id/comments(.:format) comments#index POST /posts/:post_id/comments(.:format) comments#create …