From 5f860c66d300654934848aee1abe8e5c0d41836e Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 11 Oct 2023 16:25:37 -0400 Subject: Added blog archive The path to blog posts is now "blog" instead of "says", btw. --- config/routes.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 514eb67..580cce4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -22,10 +22,9 @@ Rails.application.routes.draw do passwords: 'users/passwords' } - root "blogs#index" + root "blogs#summary" - get 'says', to: 'blogs#index' - get 'says/:slug', to: 'blogs#show', as: :blog + resources :blogs, only: [:index, :show], param: :slug, path: "blog" get 'thinks/:slug', to: 'streams#show', as: :stream -- cgit 1.4.1