axelbdt
Does Router.Helpers module remain accessible in Phoenix 1.7
Hi everyone,
Working on a prototype using phoenix 1.7-rc and ash_authentication_phoenix, and getting the following error:
function MyAppWeb.Router.Helpers.auth_path/2 is undefined (module MyAppWeb.Router.Helpers is not available)
I saw in the release notes that Helpers were superceded by the verified routes with ~p. Is this the reason of the error, or is MyAppWeb.Router.Helpers supposed to be available with 1.7?
Thank you
Most Liked
zachdaniel
Hey there! IIRC in the 1.7 rc the call to the router in MyAppWeb has helpers: false in it, and so you’d just need to change that to true.
BartOtten
Hopefully the changelog is updated soon to reflect this change. Currently is is suggesting helpers are still generated by default. PR is pending acceptance.
m4hi2
Hello, can anyone please explain why Helpers are turned off by default? It has some useful functions. Sorry, I don’t use Elixir/Phoenix daily, I’m trying to pick it up (which I did try a few years back as well).







