Skip to content
Create a gist now

Instantly share code, notes, and snippets.

SampleApp::Application.routes.draw do
resources :users
resources :sessions, only: [:new, :create, :destroy]
match '/signin' => 'sessions#new'
match '/signout' => 'sessions#destroy', via: :delete
match '/signup' => 'users#new'
match '/help' => 'static_pages#help'
match '/about' => 'static_pages#about'
match '/contact' => 'static_pages#contact'
root :to => 'static_pages#home'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.