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