Fixed notice message for create new job

This commit is contained in:
David Böhm
2024-08-04 15:41:50 +02:00
parent 70b935e76d
commit c8dcedaf0c

View File

@@ -23,7 +23,7 @@ class JobsController < ApplicationController
respond_to do |format| respond_to do |format|
if @job.save 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 } format.json { render :show, status: :created, location: @job }
else else
format.html { render :new, status: :unprocessable_entity } format.html { render :new, status: :unprocessable_entity }