Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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