about summary refs log tree commit diff stats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-12 17:10:34 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-12 17:10:34 -0400
commit835af696703484208882a70cc5dd47c5838ecf58 (patch)
tree8174d5b8c6f2486da56569bad361dd10aa1183f8 /config/routes.rb
parentb24e6f58a525fc576e23ef9d498745e64c16cd6c (diff)
downloadthoughts-835af696703484208882a70cc5dd47c5838ecf58.tar.gz
thoughts-835af696703484208882a70cc5dd47c5838ecf58.tar.bz2
thoughts-835af696703484208882a70cc5dd47c5838ecf58.zip
Added blog post commenting
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb6
1 files changed, 5 insertions, 1 deletions
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
24 24
25 root "blogs#summary" 25 root "blogs#summary"
26 26
27 resources :blogs, only: [:index, :show], param: :slug, path: "blog" 27 resources :blogs, only: [:index, :show], param: :slug, path: "blog" do
28 member do
29 resources :comments, only: [:create]
30 end
31 end
28 32
29 get 'thinks/:slug', to: 'streams#show', as: :stream 33 get 'thinks/:slug', to: 'streams#show', as: :stream
30 34