From 835af696703484208882a70cc5dd47c5838ecf58 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 12 Oct 2023 17:10:34 -0400 Subject: Added blog post commenting --- config/routes.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 580cce4..2bae007 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -24,7 +24,11 @@ Rails.application.routes.draw do root "blogs#summary" - resources :blogs, only: [:index, :show], param: :slug, path: "blog" + resources :blogs, only: [:index, :show], param: :slug, path: "blog" do + member do + resources :comments, only: [:create] + end + end get 'thinks/:slug', to: 'streams#show', as: :stream -- cgit 1.4.1