avatar

36

add new route for rails_info#properties, delete commentzilla

by chrisk, 24 Jun, 2007 07:45 AM
29 36  
11 ActionController::Routing::Routes.draw do |map|
22 
3 
4   map.connect '/rails/info/properties', :controller => 'rails_info', :action => 'properties'
5 
6 
37   map.root :controller => 'workouts', :action => 'today'
48 
59   map.resources :redirections
------
913   end
1014   
1115 
16   
1217 
13   # The priority is based upon order of creation: first created -> highest priority.
1418 
15   # Sample of regular route:
16   # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
17   # Keep in mind you can assign values other than :controller and :action
18 
19   # Sample of named route:
20   # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
21   # This route can be invoked with purchase_url(:id => product.id)
22 
23   # Sample resource route (maps HTTP verbs to controller actions automatically):
24   # map.resources :products
25 
26   # Sample resource route with options:
27   # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
28 
29   # Sample resource route with sub-resources:
30   # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
31 
32   # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
33   # map.root :controller => "welcome"
34 
35 
36   # Install the default routes as the lowest priority.
37   # map.connect ':controller/:action/:id'
38   # map.connect ':controller/:action/:id.:format'
3919 end