about summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 16:25:37 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 16:25:37 -0400
commit5f860c66d300654934848aee1abe8e5c0d41836e (patch)
tree73c6deda7baa751279f7b4fb9a0f10572cf92f0f /config
parent192705645135aa20951d78949d7e49e4bad58974 (diff)
downloadthoughts-5f860c66d300654934848aee1abe8e5c0d41836e.tar.gz
thoughts-5f860c66d300654934848aee1abe8e5c0d41836e.tar.bz2
thoughts-5f860c66d300654934848aee1abe8e5c0d41836e.zip
Added blog archive
The path to blog posts is now "blog" instead of "says", btw.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb5
1 files changed, 2 insertions, 3 deletions
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
22 passwords: 'users/passwords' 22 passwords: 'users/passwords'
23 } 23 }
24 24
25 root "blogs#index" 25 root "blogs#summary"
26 26
27 get 'says', to: 'blogs#index' 27 resources :blogs, only: [:index, :show], param: :slug, path: "blog"
28 get 'says/:slug', to: 'blogs#show', as: :blog
29 28
30 get 'thinks/:slug', to: 'streams#show', as: :stream 29 get 'thinks/:slug', to: 'streams#show', as: :stream
31 30