Add comments controller and routes

This commit is contained in:
riggraz
2019-09-16 18:02:52 +02:00
parent 3f4eba70d7
commit 3c6e27be14
7 changed files with 25 additions and 7 deletions

View File

@@ -13,6 +13,8 @@ Rails.application.routes.draw do
devise_for :users
resources :boards, only: [:show]
resources :posts, only: [:index, :create, :show, :update]
resources :posts, only: [:index, :create, :show, :update] do
resources :comments, only: [:index]
end
resources :post_statuses, only: [:index]
end