Commit 48197d5d authored by royce-matthew's avatar royce-matthew

added more routes

parent fcc48073
Rails.application.routes.draw do Rails.application.routes.draw do
devise_for :users devise_for :users
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html #devise_for :users
root "pages#index"
root to: "pages#index"
get "/profile", to: "users/profile#index"
get "/voting/new/:id", to: "voting/votes#new"
namespace :admin do
resources :candidates
resources :positions
end
namespace :voting do
resources :votes
end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment