I’m new to Phoenix and Elixir, and I’d like some help, please.
I’m having trouble with the helper paths not being found. I guess I don’t completely understand how they are generated. Is there something that needs to be done to generate the helper paths?
I’m using elixir 1.11.2, Phoenix 1.5.7
A simple hello world app seems to work.
I have added some controllers that try to use the helper paths and I get an error on mix phx.routes
hive_controller.ex:17: undefined function hive_path/3
In router.ex I have
scope “/”, HiveWeb do
.
.
.
resources “/hives”, HiveWeb.HiveController,
only: [:new, :create, :show]
.
.
.
I’m clearly missing something about the relationship between controllers, routes and helper paths. Does anyone have a pointer to some things to check and/or documentation that might help?