Set name from current user to new jobs in form

This commit is contained in:
2024-09-05 12:30:13 +02:00
parent 68ced40cbf
commit 26ccaa9bb4
3 changed files with 7 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ class JobsController < ApplicationController
# GET /jobs/new
def new
@job = Job.new
@job = Job.new(costumer_firstname: current_user.firstname, costumer_lastname: current_user.lastname)
end
# POST /jobs or /jobs.json