- map.index 'index.:format',
- :conditions => { :method => :get },
- :controller => 'feed',
- :action => 'index'
- map.feed ':feed_name.:format',
- :conditions => { :method => :get },
- :controller => 'feed',
- :action => 'show'
- map.update ':ignored',
- :conditions => { :method => :post },
- :defaults => { :ignored => nil },
- :controller => 'feed',
- :action => 'update'
-
- # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
- map.root :controller => "feed"
-
- # See how all your routes lay out with "rake routes"
-
- # Install the default routes as the lowest priority.
- # Note: These default routes make all actions in every controller accessible via GET requests. You should
- # consider removing the them or commenting them out if you're using named routes and resources.
-# map.connect ':controller/:action/:id'
-# map.connect ':controller/:action/:id.:format'
+ # Example resource route with more complex sub-resources:
+ # resources :products do
+ # resources :comments
+ # resources :sales do
+ # get 'recent', on: :collection
+ # end
+ # end
+
+ # Example resource route with concerns:
+ # concern :toggleable do
+ # post 'toggle'
+ # end
+ # resources :posts, concerns: :toggleable
+ # resources :photos, concerns: :toggleable
+
+ # Example resource route within a namespace:
+ # namespace :admin do
+ # # Directs /admin/products/* to Admin::ProductsController
+ # # (app/controllers/admin/products_controller.rb)
+ # resources :products
+ # end