I follow these tips produced by mix phoenix.gen.html:
> mix phoenix.gen.html Post posts title:string body:text
...
Add the resource to your browser scope in web/router.ex:
resources "/posts", PostController
Remember to update your repository by running migrations:
$ mix ecto.migrate
web/router.ex
doesn’t exist under project directory, so I create web/router.ex only containing text:
resources "/posts", UserController
and execute mix ecto.migrate
But output of mix phx.routes
doesn’t change. Am I right to add resources?