Show More
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml...
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml * bootrapize the user_admin * now considering user.enabled * tidy up route
File last commit:
Show/Diff file:
Action:
config/routes.rb | 54 lines | 1.2 KiB | text/x-ruby | RubyLexer |
CafeGrader::Application.routes.draw do
root :to => 'main#login'
resources :contests
resources :sites
resources :announcements do
member do
get 'toggle'
end
end
resources :problems do
member do
get 'toggle'
end
collection do
get 'turn_all_off'
get 'turn_all_on'
get 'import'
get 'manage'
end
end
resources :grader_configuration, controller: 'configurations'
resources :users do
member do
get 'toggle_activate', 'toggle_enable'
end
end
match 'tasks/view/:file.:ext' => 'tasks#view'
match 'tasks/download/:id/:file.:ext' => 'tasks#download'
match 'heartbeat/:id/edit' => 'heartbeat#edit'
#main
get "main/list"
get 'main/submission(/:id)', to: 'main#submission', as: 'main_submission'
#report
get 'report/problem_hof(/:id)', to: 'report#problem_hof', as: 'report_problem_hof'
get "report/login"
# See how all your routes lay out with "rake routes"
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
match ':controller(/:action(/:id))(.:format)'
end