-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.rb
33 lines (26 loc) · 940 Bytes
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Rails.application.routes.draw do
resources :winery_users
resources :sales_summaries
get 'sales_summary/show_by_date' => 'sales_summaries#show_by_date'
resources :tasting_rooms
resources :wineries
resources :regions
resources :counties
get 'password_resets/new'
get 'password_resets/edit'
# *** Root / URL
root 'sessions#new' # ** LOGIN
#root 'users#new' # ** SIGNUP
get 'login' => 'sessions#new'
post 'login' => 'sessions#create'
delete 'logout' => 'sessions#destroy'
get 'signup' => 'users#new'
resources :users
get '/users/:name' => 'users#id', constraints: {
name: /\d{4}/
}
get 'send_new_activation_email' => 'users#send_new_activation_email'
resources :account_activations, only: [:edit]
resources :password_resets, only: [:new, :create, :edit, :update]
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end