photomix/config/routes.rb

21 lines
737 B
Ruby
Raw Normal View History

2009-05-22 14:13:46 +02:00
ActionController::Routing::Routes.draw do |map|
2009-06-02 00:08:57 +02:00
#map.resources :users
2009-05-22 16:14:07 +02:00
map.resource :user_session
map.resource :account, :controller => "users"
2009-05-22 21:04:41 +02:00
map.signup "signup", :controller => "users", :action => "new"
2009-05-22 16:14:07 +02:00
map.login "login", :controller => "user_sessions", :action => "new"
map.logout "logout", :controller => "user_sessions", :action => "destroy"
2009-06-02 00:08:57 +02:00
map.resources :photos, :collection => { :untouched => :get }
2009-06-03 01:33:39 +02:00
map.resources :albums, :collection => { :untouched => :get }, :member => { :upload => :get}, :has_many => [ :photos ]
map.resources :collections
2009-05-25 21:39:43 +02:00
map.resources :tags, :has_many => [ :photos ]
2009-05-22 16:14:07 +02:00
2009-06-02 00:08:57 +02:00
map.namespace :admin do |admin|
admin.resources :users
end
2009-06-03 01:33:39 +02:00
map.root :controller => "collections"
2009-05-22 16:14:07 +02:00
2009-05-22 14:13:46 +02:00
end