Removed json response

This commit is contained in:
2024-08-13 10:54:26 +02:00
parent ead82a9222
commit 3a660d42de
5 changed files with 0 additions and 14 deletions

View File

@@ -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