(FunctionClauseError) no function clause matching in Ecto.Changeset.cast/4
error] #PID<0.283.0> running PhoenixAccounting.Endpoint terminated Server: phoenix-accounting-112787.nitrousapp.com:4000 (http) Request: GET /registration ** (exit) an exception was raised: ** (FunctionClauseError) no function clause matching in Ecto.Changeset.cast/4 (ecto) lib/ecto/changeset.ex:186: Ecto.Changeset.cast(%PhoenixAccounting.User{__meta__: %Ecto.Schema.Metadata{source: "users", state: :built}, encrypted_password: nil, id: nil, inserted_at: nil, password: nil, password_confirmation: nil,
The params argument can also be the atom :empty. In such cases, the
changeset is automatically marked as invalid, with an empty :changes map.
This is useful to run the changeset through all validation steps for
introspection.
.................
try def changeset(model, params \\ :empty) instead of def changeset(model, params \\ nil) and lets see if it works .