adopt-a-hydrant/config/routes.rb

18 lines
569 B
Ruby
Raw Normal View History

2011-02-14 18:28:51 +00:00
AdoptAHydrant::Application.routes.draw do
2011-03-06 18:28:00 +00:00
devise_for :users, :controllers => {
2011-03-07 02:32:11 +00:00
:passwords => 'passwords',
2011-03-06 18:28:00 +00:00
:registrations => 'users',
2011-03-07 02:32:11 +00:00
:sessions => 'sessions',
2011-03-06 18:28:00 +00:00
}
resource :user
get 'hydrants' => 'hydrants#index'
2011-03-07 08:56:32 +00:00
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'
2011-03-06 18:28:00 +00:00
root :to => 'main#index'
2011-02-14 18:28:51 +00:00
end