photomix/config/routes.rb
2009-05-22 16:14:07 +02:00

15 lines
542 B
Ruby

ActionController::Routing::Routes.draw do |map|
map.resources :users
map.resource :user_session
map.resource :account, :controller => "users"
map.login "login", :controller => "user_sessions", :action => "new"
map.logout "logout", :controller => "user_sessions", :action => "destroy"
map.resources :photos
map.resources :albums
#map.connect ':controller/:action/:id'
#map.connect ':controller/:action/:id.:format'
map.root :controller => "user_sessions", :action => "new" # optional, this just sets the root route
end