fix clients controller
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user