creddit/config/routes.rb
2015-07-10 14:33:39 -04:00

12 lines
366 B
Ruby

Rails.application.routes.draw do
resources :tests, only: [:index, :show]
get 'signup', to: 'users#new', as: :signup
get 'signin', to: 'user_sessions#new', as: :signin
get 'signout', to: 'user_sessions#destroy', as: :signout
resources :users, only: [:new, :create]
resources :user_sessions, only: [:new, :create, :destroy]
root to: 'tests#index'
end