这是indexloc提供的服务,不要输入任何密码
Skip to content

Dependency on phoenix_ecto #475

@axelson

Description

@axelson

In the Readme and mix.exs there's no mention of phoenix_ecto but trying to edit a resource without phoenix_ecto loaded results in an exception like:

    ** (Protocol.UndefinedError) protocol Phoenix.HTML.FormData not implemented for #Ecto.Changeset<action: nil, changes: %{}, errors: [], data: #Pomodoro.Schemas.PomodoroLog<>, valid?: true, ...> of type Ecto.Changeset (a struct). This protocol is implemented for the following type(s): Atom, Map, Plug.Conn
        (phoenix_html 4.1.1) lib/phoenix_html/form_data.ex:1: Phoenix.HTML.FormData.impl_for!/1

Adding a dep like {:phoenix_ecto, "~> 4.6"} to your projects mix.exs fixes this error.

To resolve this I think either ensuring :phoenix_ecto is installed to the Readme, or directly depend on :phoenix_ecto in Torch's mix.exs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions