Some layout and model changes

This commit is contained in:
2024-08-01 15:45:09 +02:00
parent f510d4ed09
commit 69bca2d99e
6 changed files with 40 additions and 57 deletions

View File

@@ -3,7 +3,7 @@ class JobsController < ApplicationController
# GET /jobs or /jobs.json
def index
@jobs = Job.current_jobs
@jobs = Job.current_jobs_of_today
end
# GET /jobs/1 or /jobs/1.json
@@ -23,7 +23,7 @@ class JobsController < ApplicationController
respond_to do |format|
if @job.save
format.html { redirect_to jobs_url(Job.current_jobs), notice: 'Job was successfully created.' }
format.html { redirect_to jobs_url(Job.current_jobs_of_today), notice: 'Job was successfully created.' }
format.json { render :show, status: :created, location: @job }
else
format.html { render :new, status: :unprocessable_entity }