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,58 +1,56 | |||||
|
1 | CafeGrader::Application.routes.draw do |
|
1 | CafeGrader::Application.routes.draw do |
|
2 | get "report/login" |
|
2 | get "report/login" |
|
3 |
|
3 | ||
|
4 | resources :contests |
|
4 | resources :contests |
|
5 |
|
5 | ||
|
6 | resources :announcements |
|
6 | resources :announcements |
|
7 | resources :sites |
|
7 | resources :sites |
|
8 |
|
8 | ||
|
9 | - resources :problems, only: [:show] |
|
||
|
10 | - |
|
||
|
11 | # The priority is based upon order of creation: |
|
9 | # The priority is based upon order of creation: |
|
12 | # first created -> highest priority. |
|
10 | # first created -> highest priority. |
|
13 |
|
11 | ||
|
14 | # Sample of regular route: |
|
12 | # Sample of regular route: |
|
15 | # match 'products/:id' => 'catalog#view' |
|
13 | # match 'products/:id' => 'catalog#view' |
|
16 | # Keep in mind you can assign values other than :controller and :action |
|
14 | # Keep in mind you can assign values other than :controller and :action |
|
17 |
|
15 | ||
|
18 | # Sample of named route: |
|
16 | # Sample of named route: |
|
19 | # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase |
|
17 | # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase |
|
20 | # This route can be invoked with purchase_url(:id => product.id) |
|
18 | # This route can be invoked with purchase_url(:id => product.id) |
|
21 |
|
19 | ||
|
22 | # Sample resource route (maps HTTP verbs to controller actions automatically): |
|
20 | # Sample resource route (maps HTTP verbs to controller actions automatically): |
|
23 | # resources :products |
|
21 | # resources :products |
|
24 |
|
22 | ||
|
25 | # Sample resource route with options: |
|
23 | # Sample resource route with options: |
|
26 | # resources :products do |
|
24 | # resources :products do |
|
27 | # member do |
|
25 | # member do |
|
28 | # get 'short' |
|
26 | # get 'short' |
|
29 | # post 'toggle' |
|
27 | # post 'toggle' |
|
30 | # end |
|
28 | # end |
|
31 | # |
|
29 | # |
|
32 | # collection do |
|
30 | # collection do |
|
33 | # get 'sold' |
|
31 | # get 'sold' |
|
34 | # end |
|
32 | # end |
|
35 | # end |
|
33 | # end |
|
36 |
|
34 | ||
|
37 | # Sample resource route with sub-resources: |
|
35 | # Sample resource route with sub-resources: |
|
38 | # resources :products do |
|
36 | # resources :products do |
|
39 | # resources :comments, :sales |
|
37 | # resources :comments, :sales |
|
40 | # resource :seller |
|
38 | # resource :seller |
|
41 | # end |
|
39 | # end |
|
42 |
|
40 | ||
|
43 | # Sample resource route with more complex sub-resources |
|
41 | # Sample resource route with more complex sub-resources |
|
44 | # resources :products do |
|
42 | # resources :products do |
|
45 | # resources :comments |
|
43 | # resources :comments |
|
46 | # resources :sales do |
|
44 | # resources :sales do |
|
47 | # get 'recent', :on => :collection |
|
45 | # get 'recent', :on => :collection |
|
48 | # end |
|
46 | # end |
|
49 | # end |
|
47 | # end |
|
50 |
|
48 | ||
|
51 | # Sample resource route within a namespace: |
|
49 | # Sample resource route within a namespace: |
|
52 | # namespace :admin do |
|
50 | # namespace :admin do |
|
53 | # # Directs /admin/products/* to Admin::ProductsController |
|
51 | # # Directs /admin/products/* to Admin::ProductsController |
|
54 | # # (app/controllers/admin/products_controller.rb) |
|
52 | # # (app/controllers/admin/products_controller.rb) |
|
55 | # resources :products |
|
53 | # resources :products |
|
56 | # end |
|
54 | # end |
|
57 |
|
55 | ||
|
58 | # You can have the root of your site routed with "root" |
|
56 | # You can have the root of your site routed with "root" |
You need to be logged in to leave comments.
Login now