1 Feedcatcher
::Application.routes
.draw
do
2 # The priority is based upon order of creation: first created -> highest priority.
3 # See how all your routes lay out with "rake routes".
5 # You can have the root of your site routed with "root"
9 get
'index', to
: 'feed#index', as
: :index
10 get
':feed_name', to
: 'feed#show', as
: :feed
11 post
'', to
: 'feed#update', as
: :update
13 # Example of regular route:
14 # get 'products/:id' => 'catalog#view'
16 # Example of named route that can be invoked with purchase_url(id: product.id)
17 # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
19 # Example resource route (maps HTTP verbs to controller actions automatically):
22 # Example resource route with options:
23 # resources :products do
34 # Example resource route with sub-resources:
35 # resources :products do
36 # resources :comments, :sales
40 # Example resource route with more complex sub-resources:
41 # resources :products do
44 # get 'recent', on: :collection
48 # Example resource route with concerns:
49 # concern :toggleable do
52 # resources :posts, concerns: :toggleable
53 # resources :photos, concerns: :toggleable
55 # Example resource route within a namespace:
57 # # Directs /admin/products/* to Admin::ProductsController
58 # # (app/controllers/admin/products_controller.rb)