Created
March 18, 2014 11:33
-
-
Save liwei78/9618341 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SampleApp::Application.routes.draw do | |
resources :users | |
resources :sessions, only: [:new, :create, :destroy] | |
resources :events do | |
member do | |
get :members | |
end | |
collection do | |
get :search | |
end | |
end | |
resources :eventjoinings, only: [:create, :destroy] | |
root to: 'static_pages#home' | |
match '/signup', to: 'users#new', via: 'get' | |
match '/signin', to: 'sessions#new', via: 'get' | |
match '/signout', to: 'sessions#destroy', via: 'delete' | |
match '/help', to: 'static_pages#help', via: 'get' | |
match '/about', to: 'static_pages#about', via: 'get' | |
match '/contact', to: 'static_pages#contact', via: 'get' | |
match '/create', to: 'events#new', via: 'get' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment