1 ActionController::Routing::Routes.draw do |map|
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
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 }
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
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.help '/help', :controller => 'user', :action => 'help'
44 map.rules '/rules', :controller => 'user', :action => 'rules'
45 map.raiting '/raiting', :controller => 'user', :action => 'raiting'
46 map.friends '/friends', :controller => 'user', :action => 'friends'
47 map.mybets '/mybets', :controller => 'user', :action => 'mybets'
49 map.reaction 'reaction/:id', :controller => 'user', :action => 'reaction'
50 map.show 'show/:id', :controller => 'user', :action => 'bet'
51 map.edit 'edit/:id', :controller => 'user', :action => 'edit'
53 map.new '/new', :controller => 'user', :action => 'new'
54 map.aribterinvite '/aribterinvite/:id', :controller => 'user', :action => 'aribterinvite'
55 map.create '/create', :controller => 'user', :action => 'create'
56 # map.create_bet '/create_bet', :controller => 'user', :action => 'create_bet'
58 map.auth '/auth', :controller => 'admin', :action => 'auth'
59 map.admin '/admin', :controller => 'admin', :action => 'index'
60 map.deleted '/deleted', :controller => 'admin', :action => 'deleted'
61 map.stat '/stat', :controller => 'admin', :action => 'stat'
62 map.signout '/signout', :controller => 'admin', :action => 'sign_out'
63 map.fbdel '/fbdel', :controller => 'admin', :action => 'fbdelete'
64 map.home '/home', :controller => "user", :action => "index"
65 map.root :controller => "user", :action => "index"
67 map.connect ':controller/:action/:id'
68 map.connect ':controller/:action/:id.:format'