Description:
revert route
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r414:bb50298c9207 - - 1 file changed: 0 inserted, 2 deleted
@@ -1,72 +1,70 | |||
|
1 | 1 | CafeGrader::Application.routes.draw do |
|
2 | 2 | get "report/login" |
|
3 | 3 | |
|
4 | 4 | resources :contests |
|
5 | 5 | |
|
6 | 6 | resources :announcements |
|
7 | 7 | resources :sites |
|
8 | 8 | |
|
9 | - resources :problems, only: [:show] | |
|
10 | - | |
|
11 | 9 | # The priority is based upon order of creation: |
|
12 | 10 | # first created -> highest priority. |
|
13 | 11 | |
|
14 | 12 | # Sample of regular route: |
|
15 | 13 | # match 'products/:id' => 'catalog#view' |
|
16 | 14 | # Keep in mind you can assign values other than :controller and :action |
|
17 | 15 | |
|
18 | 16 | # Sample of named route: |
|
19 | 17 | # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase |
|
20 | 18 | # This route can be invoked with purchase_url(:id => product.id) |
|
21 | 19 | |
|
22 | 20 | # Sample resource route (maps HTTP verbs to controller actions automatically): |
|
23 | 21 | # resources :products |
|
24 | 22 | |
|
25 | 23 | # Sample resource route with options: |
|
26 | 24 | # resources :products do |
|
27 | 25 | # member do |
|
28 | 26 | # get 'short' |
|
29 | 27 | # post 'toggle' |
|
30 | 28 | # end |
|
31 | 29 | # |
|
32 | 30 | # collection do |
|
33 | 31 | # get 'sold' |
|
34 | 32 | # end |
|
35 | 33 | # end |
|
36 | 34 | |
|
37 | 35 | # Sample resource route with sub-resources: |
|
38 | 36 | # resources :products do |
|
39 | 37 | # resources :comments, :sales |
|
40 | 38 | # resource :seller |
|
41 | 39 | # end |
|
42 | 40 | |
|
43 | 41 | # Sample resource route with more complex sub-resources |
|
44 | 42 | # resources :products do |
|
45 | 43 | # resources :comments |
|
46 | 44 | # resources :sales do |
|
47 | 45 | # get 'recent', :on => :collection |
|
48 | 46 | # end |
|
49 | 47 | # end |
|
50 | 48 | |
|
51 | 49 | # Sample resource route within a namespace: |
|
52 | 50 | # namespace :admin do |
|
53 | 51 | # # Directs /admin/products/* to Admin::ProductsController |
|
54 | 52 | # # (app/controllers/admin/products_controller.rb) |
|
55 | 53 | # resources :products |
|
56 | 54 | # end |
|
57 | 55 | |
|
58 | 56 | # You can have the root of your site routed with "root" |
|
59 | 57 | # just remember to delete public/index.html. |
|
60 | 58 | # root :to => 'welcome#index' |
|
61 | 59 | |
|
62 | 60 | root :to => 'main#login' |
|
63 | 61 | |
|
64 | 62 | match 'tasks/view/:file.:ext' => 'tasks#view' |
|
65 | 63 | match 'tasks/download/:id/:file.:ext' => 'tasks#download' |
|
66 | 64 | |
|
67 | 65 | # See how all your routes lay out with "rake routes" |
|
68 | 66 | |
|
69 | 67 | # This is a legacy wild controller route that's not recommended for RESTful applications. |
|
70 | 68 | # Note: This route will make all actions in every controller accessible via GET requests. |
|
71 | 69 | match ':controller(/:action(/:id))(.:format)' |
|
72 | 70 | end |
You need to be logged in to leave comments.
Login now