From 2a064c8508ed9195106b94b3a0052f4bf705c5b7 Mon Sep 17 00:00:00 2001 From: usernaimandrey Date: Fri, 5 Aug 2022 01:29:39 +0300 Subject: [PATCH] fix_routing --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index a4be479..ff51bb1 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -9,7 +9,7 @@ resources :posts, only: %i[show new create destroy] do scope module: :posts do - post 'comments(/:parent_id)', to: 'comments#create', as: :comments + resources :comments, only: %i[create] resources :likes, only: %i[create destroy] end end