Fixed notice message for create new job
This commit is contained in:
@@ -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 }
|
||||||
|
|||||||
Reference in New Issue
Block a user