Guest User

Untitled

a guest
Feb 5th, 2014
1,500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. http://localhost:3000/
  2. http://localhost:3000/users
  3. http://localhost:3000/user
  4.  
  5. Prjmgt::Application.routes.draw do
  6. devise_for :users
  7.  
  8. # The priority is based upon order of creation:
  9. # first created -> highest priority.
  10.  
  11. # Sample of regular route:
  12. # match 'products/:id' => 'catalog#view'
  13. # Keep in mind you can assign values other than :controller and :action
  14.  
  15. # Sample of named route:
  16. # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
  17. # This route can be invoked with purchase_url(:id => product.id)
  18.  
  19. # Sample resource route (maps HTTP verbs to controller actions automatically):
  20. # resources :products
  21.  
  22. # Sample resource route with options:
  23. # resources :products do
  24. # member do
  25. # get 'short'
  26. # post 'toggle'
  27. # end
  28. #
  29. # collection do
  30. # get 'sold'
  31. # end
  32. # end
  33.  
  34. # Sample resource route with sub-resources:
  35. # resources :products do
  36. # resources :comments, :sales
  37. # resource :seller
  38. # end
  39.  
  40. # Sample resource route with more complex sub-resources
  41. # resources :products do
  42. # resources :comments
  43. # resources :sales do
  44. # get 'recent', :on => :collection
  45. # end
  46. # end
  47.  
  48. # Sample resource route within a namespace:
  49. # namespace :admin do
  50. # # Directs /admin/products/* to Admin::ProductsController
  51. # # (app/controllers/admin/products_controller.rb)
  52. # resources :products
  53. # end
  54.  
  55. # You can have the root of your site routed with "root"
  56. # just remember to delete public/index.html.
  57. # root :to => 'welcome#index'
  58. root :to => 'home#index'
  59.  
  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
  67.  
  68. /user
  69.  
  70. /users
  71.  
  72. resources :users
  73.  
  74. /:controller/:action/:id
  75.  
  76. match "/users/:id" => "users#show"
Advertisement
Add Comment
Please, Sign In to add comment