makes debates/index the root url

This commit is contained in:
rgarcia
2015-07-18 21:28:38 +02:00
parent afdb0980b0
commit 2bd2ceaf59

View File

@@ -5,7 +5,7 @@ Rails.application.routes.draw do
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
root 'welcome#index'
root 'debates#index'
resources :debates do
resources :votes, only: :create
resources :comments, only: :create