small medium large xlarge

Generic-user-small
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

into

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+. https://github.com/jechol/phoenix-book-rumbl

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

You must be logged in to comment