fix clients controller
This commit is contained in:
		| @@ -60,11 +60,11 @@ class ClientsController < ApplicationController | |||||||
|   private |   private | ||||||
|     # Use callbacks to share common setup or constraints between actions. |     # Use callbacks to share common setup or constraints between actions. | ||||||
|     def set_client |     def set_client | ||||||
|       @client = Client.find(params.expect(:id)) |       @client = Client.find(params[:id]) | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     # Only allow a list of trusted parameters through. |     # Only allow a list of trusted parameters through. | ||||||
|     def client_params |     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 | ||||||
| end | end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stefan Tollkühn
					Stefan Tollkühn