James Carlson
1 min readMay 22, 2017

--

Great article, but I’m having trouble with mix ecto.create :

== Compilation error on file lib/medium_phx_example/web/controllers/album_controller.ex ==

** (CompileError) lib/medium_phx_example/web/controllers/album_controller.ex:18: undefined function album_path/3

I did add the following to router.ex but still get errors:

scope “/api”, MediumPhxExample.Web do
pipe_through :api
resources “/songs”, SongController
resources “/albums”, AlbumsController
end

--

--