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

added more routes

parent fcc48073
Rails.application.routes.draw do
devise_for :users
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
root "pages#index"
#devise_for :users
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
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