Skip to content

Instantly share code, notes, and snippets.

@keeperofthenecklace
Created August 18, 2012 20:21
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 keeperofthenecklace/3389573 to your computer and use it in GitHub Desktop.
Save keeperofthenecklace/3389573 to your computer and use it in GitHub Desktop.
config/routes.rb
resources :users
resources :sessions, only: [:new, :create, :destroy]
match '/signup', to: 'users#new'
match '/signin', to: 'sessions#new'
match '/signout', to: 'sessions#destroy', via: :delete
get "users/new"
root to: 'static_pages#home'
match 'help', to: 'static_pages#help'
match 'about', to: 'static_pages#about'
match 'contact', to: 'static_pages#contact'
match 'signup', to: 'users#new'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment