adds votes to debates [#9]

This commit is contained in:
rgarcia
2015-07-18 18:10:19 +02:00
parent b8e41551f9
commit e006549092
5 changed files with 69 additions and 4 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 :votes, only: :create
end
# Example of regular route:
# get 'products/:id' => 'catalog#view'