I am trying to follow an ecto embedded schema example from 2017 where the example uses the cast/3 function but it keeps telling me the cast/3 function is undefined.
Apparently the example uses “Ecto” and my app uses “phoenix_ecto” as the only difference i’ve been able to dectect.
the 2017 example apparently used “ecto” as a dependency… is that sill the norm?
Make sure your code has import Ecto.Changeset if the example’s does - if that was missing, it’d produce exactly an “undefined function cast/3” error in code that expects it.