Skip to content

Instantly share code, notes, and snippets.

@remear
Created December 24, 2012 03:31
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 remear/dd6821926dc94e6587f8 to your computer and use it in GitHub Desktop.
Save remear/dd6821926dc94e6587f8 to your computer and use it in GitHub Desktop.
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'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment