-
Notifications
You must be signed in to change notification settings - Fork 172
Closed
Milestone
Description
Attempting to delete a job from the activejobs page spawns a NameError because activejobs_path is undefined in ActiveJobsController.
ondemand/apps/dashboard/app/controllers/active_jobs_controller.rb
Lines 58 to 64 in 21f13f3
| redirect_to activejobs_path, :notice => "Successfully deleted #{job_id}" | |
| rescue StandardError | |
| redirect_to activejobs_path, :alert => "Failed to delete #{job_id}" | |
| end | |
| else | |
| redirect_to activejobs_path, :alert => 'Failed to delete.' | |
| end |
This appears to be nothing more than a typo, as the route is defined to be active_jobs not activejobs
ondemand/apps/dashboard/config/routes.rb
Lines 110 to 114 in 21f13f3
| if Configuration.can_access_activejobs? | |
| get '/activejobs' => 'active_jobs#index', :as => 'active_jobs' | |
| get '/activejobs/json' => 'active_jobs#json', :defaults => { :format => 'json' } | |
| delete '/activejobs' => 'active_jobs#delete_job', :as => 'delete_job' | |
| end |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
Reviewed, Closed