lc0815
Getting "no route found for GET /hello/phoenix (HelloPhoenixWeb.Router)" while following an article
hello from a real frustrated newbe…
I’m reading this article Full-Stack React With Phoenix (Chapter 3 | Introduction to Phoenix) by michael mangialardi from the medium library. in it he’s adding a new Hello controller and I follow the to the letter on all fo the files he creates but I keep getting the error: Phoenix.Router.NoRouteError at GET /hello/phoenix
no route found for GET /hello/phoenix (HelloPhoenixWeb.Router)
and the only thing that is different is he is using version 1.3 of phoenix and I’m using the latest version.
for something this simple both version should work… but alas no matter what I try, it DOES NOT WORK FOR me…
Most Liked
t0t0
I don’t know if it is some kind of typo but an important / is missing here between /hello and :data
t0t0
Phoenix.Controller.render/3 expects a Keyword or a Map as assigns, not an atom.
So: render conn, "hello.html", data: data (Keyword), for example, like given in the tutorial you follow







