From 4baed9284e6711635a30fc95db7e2b2fa1b3ed21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tollk=C3=BChn?= Date: Tue, 22 Jul 2025 16:00:24 +0200 Subject: [PATCH] fix clients controller --- app/controllers/clients_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/clients_controller.rb b/app/controllers/clients_controller.rb index 4c5b947..3c1514d 100644 --- a/app/controllers/clients_controller.rb +++ b/app/controllers/clients_controller.rb @@ -60,11 +60,11 @@ class ClientsController < ApplicationController private # Use callbacks to share common setup or constraints between actions. def set_client - @client = Client.find(params.expect(:id)) + @client = Client.find(params[:id]) end # Only allow a list of trusted parameters through. def client_params - params.expect(client: [ :company_name, :firstname, :lastname, :streetname, :zipcode, :city, :country, :email, :phone ]) + params.require(:client).permit(:company_name, :firstname, :lastname, :streetname, :zipcode, :city, :country, :email, :phone) end end