From c8dcedaf0c69723a43a601c77a25b153ba32d07b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Sun, 4 Aug 2024 15:41:50 +0200 Subject: [PATCH] Fixed notice message for create new job --- app/controllers/jobs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/jobs_controller.rb b/app/controllers/jobs_controller.rb index 98ba3f3..b4dd6aa 100644 --- a/app/controllers/jobs_controller.rb +++ b/app/controllers/jobs_controller.rb @@ -23,7 +23,7 @@ class JobsController < ApplicationController respond_to do |format| if @job.save - format.html { redirect_to jobs_url(Job.currently_working_on), notice: 'Job was successfully created.' } + format.html { redirect_to jobs_url, notice: 'Job was successfully created.' } format.json { render :show, status: :created, location: @job } else format.html { render :new, status: :unprocessable_entity }