some
[appoyo.git] / config / routes.rb~
blob6b31937a3f348c53c0b5e4ea02ba5f6f8577d46b
1 ActionController::Routing::Routes.draw do |map|
2  #a map.logout '/logout', :controller => 'sessions', :action => 'destroy'
3  # map.login '/login', :controller => 'sessions', :action => 'new'
4  # map.register '/register', :controller => 'users', :action => 'create'
5  # map.signup '/signup', :controller => 'users', :action => 'new'
6   
7  # map.invitefriend '/invitefriend', :controller => 'users', :action => 'invitefriend'  
8  # map.facebookapp '/facebookapp', :controller => 'users', :action => 'facebookapp'
9  # map.fbstart '/fbstart', :controller => 'fbpage', :action => 'fbstart'  
10   map.fbbusiness '/fbbusiness', :controller => 'fbpage', :action => 'fbbusiness'  
11   map.fbprivat '/fbprivat', :controller => 'fbpage', :action => 'fbprivat'  
13   #map.processcallback '/processcallback', :controller => 'users', :action => 'processcallback'
14   #map.localcallback '/localcallback', :controller => 'users', :action => 'localcallback'
15   
16  # map.permission '/permission', :controller => 'users', :action => 'permission'
17   
18   
19   #map.publish_game_result '/publish_game_result', :controller => 'users', :action => 'publish_game_result'
21   #map.statistic_to_csv '/statistic_to_csv', :controller => 'users', :action => 'statistic_to_csv'
22   
23   #map.api '/api', :controller => 'users', :action => 'api'
26   #map.fakejawaker '/fakejawaker', :controller => 'users', :action => 'fakejawaker'
27   
28   #map.update '/update', :controller => 'fbfriend', :action => 'update'
29   map.stat '/stat', :controller => 'users', :action => 'stat'
30   #map.signout '/signout', :controller => 'users', :action => 'sign_out'
32   #map.auth '/auth', :controller => 'users', :action => 'auth'
33   
34   map.resources :users, :collection => {:link_user_accounts => :get}
35   map.resource :session
36    
37   
38   # The priority is based upon order of creation: first created -> highest priority.
40   # Sample of regular route:
41   #   map.connect 'products/:id', :controller => 'catalog', :action => 'view'
42   # Keep in mind you can assign values other than :controller and :action
44   # Sample of named route:
45   #   map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
46   # This route can be invoked with purchase_url(:id => product.id)
48   # Sample resource route (maps HTTP verbs to controller actions automatically):
49   #   map.resources :products
51   # Sample resource route with options:
52   #   map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
54   # Sample resource route with sub-resources:
55   #   map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
56   
57   # Sample resource route with more complex sub-resources
58   #   map.resources :products do |products|
59   #     products.resources :comments
60   #     products.resources :sales, :collection => { :recent => :get }
61   #   end
63   # Sample resource route within a namespace:
64   #   map.namespace :admin do |admin|
65   #     # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
66   #     admin.resources :products
67   #   end
69   # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
70   # map.root :controller => "welcome"
72   # See how all your routes lay out with "rake routes"
74   # Install the default routes as the lowest priority.
75   # Note: These default routes make all actions in every controller accessible via GET requests. You should
76   # consider removing the them or commenting them out if you're using named routes and resources.
78   
79   map.root :controller => "fbpage", :action => "fbstart"
80   map.connect ':controller/:action/:id'
81   map.connect ':controller/:action/:id.:format'
82 end