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…
defmodule HelloPhoenixWeb.HelloController do
use HelloPhoenixWeb, :controller
def message(conn, %{"data" => data}) do
render conn, "hello.html", :data
end
end
I missed the / between the hello and the :data, so I started making changes to see what worked making things worse, now I can continue with my article. thanks again, great job… this really helps…