Skip to content

Instantly share code, notes, and snippets.

@i8igmac
Created November 11, 2016 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i8igmac/ca92095bb4117c94776c419aab23318e to your computer and use it in GitHub Desktop.
Save i8igmac/ca92095bb4117c94776c419aab23318e to your computer and use it in GitHub Desktop.
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