Page 74: The Ecto.Changeset.cast/4 function filters the user data we pass into params.
params should be attrs
Pages 85-86: the function to validate the coupon should probably be named validate_coupon, not validate_code.
Page 74: The Ecto.Changeset.cast/4 function filters the user data we pass into params.
params should be attrs
Pages 85-86: the function to validate the coupon should probably be named validate_coupon, not validate_code.