Ребят, у меня очередная попытка освоить Phoenix.
Создал модель
mix phx.gen.html Doctors Doctor doctors fname:string pname:string lname:string
HTMLный CRUD работает.
Теперь пытаюст понять как работать с Ecto, смотрю доку на
https://hexdocs.pm/phoenix/ecto.htmlТам в примере Repo.all(User), я делаю
iex(1)> Repo.all(Doctor)
(UndefinedFunctionError) function Repo.all/1 is undefined (module Repo is not available)
Repo.all(Doctor)
ок, тогда другой вариант
iex(1)> Edent.Repo.all(Doctor)
(Protocol.UndefinedError) protocol Ecto.Queryable not implemented for Doctor of type Atom, the given module does not exist. This protocol is implemented for the following type(s): BitString, Ecto.SubQuery, Ecto.Query, Atom, Tuple
(ecto) lib/ecto/queryable.ex:40: Ecto.Queryable.Atom.to_query/1
(ecto) lib/ecto/repo/queryable.ex:14: Ecto.Repo.Queryable.all/3
что ему надо? Что я делаю не так? Куда копать?