-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathroutes.rb
More file actions
31 lines (27 loc) · 864 Bytes
/
routes.rb
File metadata and controls
31 lines (27 loc) · 864 Bytes
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
Rails.application.routes.draw do
root to: 'home#index'
resources :contacts, only: :index
resources :participating_schools, path: 'participating-schools'
resources :companies
resources :events do
collection do
get :map
end
member do
post :approve
post :unapprove
end
end
resources :frequently_asked_questions, path: 'frequently-asked-questions'
as :school do
get 'schools/update_towns', to: 'registrations#update_towns', as: :update_towns
get 'schools/profile', to: 'devise/registrations#edit', as: :school_root
end
as :speaker do
get 'speakers/profile', to: 'devise/registrations#edit', as: :speaker_root
end
devise_for :schools, :controllers => {:registrations => "registrations"}
devise_for :speakers
devise_for :admin_users, ActiveAdmin::Devise.config
ActiveAdmin.routes(self)
end