Created
November 11, 2016 03:13
-
-
Save i8igmac/ca92095bb4117c94776c419aab23318e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
get 'sessions/index' | |
get 'sessions/create' | |
get 'sessions/destroy' | |
resources :controller, :sessions | |
resources '', :controller => 'sessions', :action => 'new' | |
root '', :controller => 'sessions', :action => 'new' | |
get 'login', :controller => 'sessions', :action => 'create' | |
get 'logout', :controller => 'sessions', :action => 'destroy' | |
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment