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