Guest User

Untitled

a guest
Apr 26th, 2016
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. Rails.application.routes.draw do
  2.  
  3. get 'home#profile' => 'home#profile'
  4.  
  5. get 'auth/:provider/callback', to: "sessions#create"
  6.  
  7. delete 'sign_out', to: "sessions#destroy", as: 'sign_out'
  8.  
  9.  
  10. resources :submissions
  11. resources :users
  12. # The priority is based upon order of creation: first created -> highest priority.
  13. # See how all your routes lay out with "rake routes".
  14.  
  15. # You can have the root of your site routed with "root"
  16. # root 'application#hello'
  17.  
  18. # Example of regular route:
  19. # get 'products/:id' => 'catalog#view'
  20.  
  21. # Example of named route that can be invoked with purchase_url(id: product.id)
  22. # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
  23.  
  24. # Example resource route (maps HTTP verbs to controller actions automatically):
  25. # resources :products
  26.  
  27. # Example resource route with options:
  28. # resources :products do
  29. # member do
  30. # get 'short'
  31. # post 'toggle'
  32. # end
  33. #
  34. # collection do
  35. # get 'sold'
  36. # end
  37. # end
  38.  
  39. # Example resource route with sub-resources:
  40. # resources :products do
  41. # resources :comments, :sales
  42. # resource :seller
  43. # end
  44.  
  45. # Example resource route with more complex sub-resources:
  46. # resources :products do
  47. # resources :comments
  48. # resources :sales do
  49. # get 'recent', on: :collection
  50. # end
  51. # end
  52.  
  53. # Example resource route with concerns:
  54. # concern :toggleable do
  55. # post 'toggle'
  56. # end
  57. # resources :posts, concerns: :toggleable
  58. # resources :photos, concerns: :toggleable
  59.  
  60. # Example resource route within a namespace:
  61. # namespace :admin do
  62. # # Directs /admin/products/* to Admin::ProductsController
  63. # # (app/controllers/admin/products_controller.rb)
  64.  
  65. end
Advertisement
Add Comment
Please, Sign In to add comment