Removed json response
This commit is contained in:
@@ -19,10 +19,8 @@ class JobsController < ApplicationController
|
||||
Turbo::StreamsChannel.broadcast_prepend_later_to "jobs", target: :jobs, partial: "jobs/job_tr",
|
||||
locals: { job: @job }
|
||||
format.html { redirect_to jobs_url }
|
||||
format.json { render :show, status: :created, location: @job }
|
||||
else
|
||||
format.html { render :new, status: :unprocessable_entity }
|
||||
format.json { render json: @job.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -39,7 +37,6 @@ class JobsController < ApplicationController
|
||||
broadcast_update_job
|
||||
format.turbo_stream
|
||||
format.html { redirect_to jobs_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user