add new route for rails_info#properties, delete commentzilla
| 29 | 36 | |
|---|---|---|
| 1 | 1 | ActionController::Routing::Routes.draw do |map| |
| 2 | 2 | |
| 3 | ||
| 4 | map.connect '/rails/info/properties', :controller => 'rails_info', :action => 'properties' | |
| 5 | ||
| 6 | ||
| 3 | 7 | map.root :controller => 'workouts', :action => 'today' |
| 4 | 8 | |
| 5 | 9 | map.resources :redirections |
| --- | --- | |
| 9 | 13 | end |
| 10 | 14 | |
| 11 | 15 | |
| 16 | ||
| 12 | 17 | |
| 13 | # The priority is based upon order of creation: first created -> highest priority. | |
| 14 | 18 | |
| 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' | |
| 39 | 19 | end |
