adds comments to debates [#7]

This commit is contained in:
rgarcia
2015-07-18 17:38:57 +02:00
parent 05705f3174
commit 98463e4930
5 changed files with 60 additions and 1 deletions

View File

@@ -5,7 +5,9 @@ Rails.application.routes.draw do
# You can have the root of your site routed with "root"
root 'welcome#index'
resources :debates
resources :debates do
resources :comments, only: :create
end
# Example of regular route:
# get 'products/:id' => 'catalog#view'