small medium large xlarge

28 Aug 2017, 00:01
Zsolt Ero (1 post)

Hi, do I understand it right that when following Programming Phoenix with a recent version of Phoenix, I need to change

def changeset(model, params \ :empty) do


def changeset(model, params \ %{}) do

I’m struggling to make it work, and my only resource is a GitHub repo which said to have the code updated for 1.3+.

Right now I believe we need that change because of a change in Ecto 2.0.

22 Dec 2017, 07:43
Malcolm Watt (1 post)

Someone in the erata fixed this exact problem by replacing :empty with :invalid

You must be logged in to comment