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

Written by

jxxcarlson on elm slack,

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store