about summary refs log tree commit diff stats
path: root/config/routes.rb
diff options
context:
space:
mode:
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