Fixed typo

This commit is contained in:
2024-10-02 13:51:15 +02:00
parent 23749c80b8
commit 337ff9b9d9
24 changed files with 79 additions and 79 deletions

View File

@@ -11,13 +11,13 @@ class JobsController < ApplicationController
# GET /jobs/new
def new
@job = Job.new(costumer_firstname: current_user.firstname, costumer_lastname: current_user.lastname)
@job = Job.new(customer_firstname: current_user.firstname, customer_lastname: current_user.lastname)
end
# POST /jobs or /jobs.json
def create
@job = Job.new(job_params)
@job.costumer = current_user
@job.customer = current_user
respond_to do |format|
if @job.save
@@ -95,6 +95,6 @@ class JobsController < ApplicationController
# Only allow a list of trusted parameters through.
def job_params
params.require(:job).permit(:costumer_id, :costumer_firstname, :costumer_lastname, :privacy_policy, :pdf)
params.require(:job).permit(:customer_id, :customer_firstname, :customer_lastname, :privacy_policy, :pdf)
end
end