|
5 | 5 | devise_for :admin_users, ActiveAdmin::Devise.config |
6 | 6 |
|
7 | 7 | scope 'admin' do |
8 | | - resources :users, controller: 'admin/users', as: 'admin_users', constraints: { id: /[^\/]+/ } |
| 8 | + resources :users, controller: 'admin/users', as: 'admin_users', constraints: { id: /[^\/]+/ }, defaults: { format: :html }, format: false |
9 | 9 | end |
10 | 10 | ActiveAdmin.routes(self) |
11 | 11 |
|
|
37 | 37 | end |
38 | 38 | end |
39 | 39 |
|
40 | | - resources :users, constraints: { id: /[^\/]+/ } |
41 | 40 | resources :posts do |
42 | 41 | resources :comments, except: [:index] |
43 | 42 | end |
|
60 | 59 | resources :articles |
61 | 60 | resources :testdata, only: [:show] |
62 | 61 |
|
63 | | - resources :users do |
| 62 | + resources :users, constraints: { id: /[^\/]+/ }, defaults: { format: :html }, format: false do |
64 | 63 | member do |
65 | 64 | get 'changed_problems' |
66 | 65 | get 'changed_submissions' |
|
88 | 87 | # You can have the root of your site routed with "root" |
89 | 88 | root 'welcome#index' |
90 | 89 |
|
91 | | - # Example of regular route: |
92 | | - # get 'products/:id' => 'catalog#view' |
93 | | - |
94 | | - # Example of named route that can be invoked with purchase_url(id: product.id) |
95 | | - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase |
96 | | - |
97 | | - # Example resource route (maps HTTP verbs to controller actions automatically): |
98 | | - # resources :products |
99 | | - |
100 | | - # Example resource route with options: |
101 | | - # resources :products do |
102 | | - # member do |
103 | | - # get 'short' |
104 | | - # post 'toggle' |
105 | | - # end |
106 | | - # |
107 | | - # collection do |
108 | | - # get 'sold' |
109 | | - # end |
110 | | - # end |
111 | | - |
112 | | - # Example resource route with sub-resources: |
113 | | - # resources :products do |
114 | | - # resources :comments, :sales |
115 | | - # resource :seller |
116 | | - # end |
117 | | - |
118 | | - # Example resource route with more complex sub-resources: |
119 | | - # resources :products do |
120 | | - # resources :comments |
121 | | - # resources :sales do |
122 | | - # get 'recent', on: :collection |
123 | | - # end |
124 | | - # end |
125 | | - |
126 | | - # Example resource route with concerns: |
127 | | - # concern :toggleable do |
128 | | - # post 'toggle' |
129 | | - # end |
130 | | - # resources :posts, concerns: :toggleable |
131 | | - # resources :photos, concerns: :toggleable |
132 | | - |
133 | | - # Example resource route within a namespace: |
134 | | - # namespace :admin do |
135 | | - # # Directs /admin/products/* to Admin::ProductsController |
136 | | - # # (app/controllers/admin/products_controller.rb) |
137 | | - # resources :products |
138 | | - # end |
139 | | - |
140 | 90 | # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html |
141 | 91 | end |
0 commit comments