Guest User

Untitled

a guest
Jan 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. Wdwfood::Application.routes.draw do
  2. resources :videos, :photos, :districts, :eateries
  3.  
  4. resources :home, :only => :index
  5.  
  6. match '/place/:permalink' => 'districts#show'
  7. match '/auth/:provider/callback', :to => 'sessions#callback'
  8.  
  9. # The priority is based upon order of creation:
  10. # first created -> highest priority.
  11.  
  12. # Sample of regular route:
  13. # match 'products/:id' => 'catalog#view'
  14. # Keep in mind you can assign values other than :controller and :action
  15.  
  16. # Sample of named route:
  17. # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
  18. # This route can be invoked with purchase_url(:id => product.id)
  19.  
  20. # Sample resource route (maps HTTP verbs to controller actions automatically):
  21. # resources :products
  22.  
  23. # Sample resource route with options:
  24. # resources :products do
  25. # member do
  26. # get 'short'
  27. # post 'toggle'
  28. # end
  29. #
  30. # collection do
  31. # get 'sold'
  32. # end
  33. # end
  34.  
  35. # Sample resource route with sub-resources:
  36. # resources :products do
  37. # resources :comments, :sales
  38. # resource :seller
  39. # end
  40.  
  41. # Sample resource route with more complex sub-resources
  42. # resources :products do
  43. # resources :comments
  44. # resources :sales do
  45. # get 'recent', :on => :collection
  46. # end
  47. # end
  48.  
  49. # Sample resource route within a namespace:
  50. # namespace :admin do
  51. # # Directs /admin/products/* to Admin::ProductsController
  52. # # (app/controllers/admin/products_controller.rb)
  53. # resources :products
  54. # end
  55. match '/:permalink' => 'eateries#show', :as => 'eatery_permalink'
  56.  
  57. # You can have the root of your site routed with "root"
  58. # just remember to delete public/index.html.
  59. root :to => "districts#index"
  60.  
  61. # See how all your routes lay out with "rake routes"
  62.  
  63. # This is a legacy wild controller route that's not recommended for RESTful applications.
  64. # Note: This route will make all actions in every controller accessible via GET requests.
  65. # match ':controller(/:action(/:id(.:format)))'
  66. end
Add Comment
Please, Sign In to add comment