m
[playfm2.git] / config / routes.rb
blob53499bd50dd7645985b8d3a8c2f1b8aa6b82e27f
1 ActionController::Routing::Routes.draw do |map|
2   
4   # The priority is based upon order of creation: first created -> highest priority.
6   # Sample of regular route:
7   #   map.connect 'products/:id', :controller => 'catalog', :action => 'view'
8   # Keep in mind you can assign values other than :controller and :action
10   # Sample of named route:
11   #   map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
12   # This route can be invoked with purchase_url(:id => product.id)
14   # Sample resource route (maps HTTP verbs to controller actions automatically):
15   #   map.resources :products
17   # Sample resource route with options:
18   #   map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
20   # Sample resource route with sub-resources:
21   #   map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
22   
23   # Sample resource route with more complex sub-resources
24   #   map.resources :products do |products|
25   #     products.resources :comments
26   #     products.resources :sales, :collection => { :recent => :get }
27   #   end
29   # Sample resource route within a namespace:
30   #   map.namespace :admin do |admin|
31   #     # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
32   #     admin.resources :products
33   #   end
35   # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
36   # map.root :controller => "welcome"
38   # See how all your routes lay out with "rake routes"
40   # Install the default routes as the lowest priority.
41   # Note: These default routes make all actions in every controller accessible via GET requests. You should
42   # consider removing the them or commenting them out if you're using named routes and resources.
43   map.root :controller => "user", :action => "home"
44   map.connect ':controller/:action/:id'
45   map.connect ':controller/:action/:id.:format'
46   
47   map.fbadd '/fbdel', :controller => 'fbusers', :action => 'fbdelete'
48   map.auth '/auth', :controller => 'fbusers', :action => 'auth'
49   map.admin '/admin', :controller => 'fbusers', :action => 'index'
50   map.log '/log', :controller => 'fbusers', :action => 'log'
51   map.deleted '/deleted', :controller => 'fbusers', :action => 'deleted'
52   map.uninvited '/uninvited', :controller => 'fbusers', :action => 'uninvited'
53   map.stat '/stat', :controller => 'fbusers', :action => 'stat'
54   
55   map.signout '/signout', :controller => 'fbusers', :action => 'sign_out'
56   map.signout '/final', :controller => 'user', :action => 'final'
57   map.resources :fbusers
58 end