adopt-a-hydrant/config/routes.rb

18 lines
569 B
Ruby

AdoptAHydrant::Application.routes.draw do
devise_for :users, :controllers => {
:passwords => 'passwords',
:registrations => 'users',
:sessions => 'sessions',
}
resource :user
get 'hydrants' => 'hydrants#index'
resource :hydrant
scope 'javascripts', :controller => 'javascripts', :as => 'javascripts' do
get 'main', :action => 'main', :as => 'main'
end
get 'address' => 'addresses#index', :as => 'address'
get 'sitemap' => 'sitemaps#index', :as => 'sitemap'
get 'forms' => 'forms#index', :as => 'forms'
root :to => 'main#index'
end