-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mix phx.gen.html creates wrong subfolder and wrong module name #2405
Comments
The |
I see, thanks. I had to rerun |
Phoenix newbie here. I'm confused, should it work as expected now? I'm following along the guide at https://hexdocs.pm/phoenix/testing.html#content with Phoenix 1.3.0 and I'm bumping into issues.
Help message says to edit
Apparently that's because ConnCase is under HelloWeb, not under Hello. I tried to fix that in
I found a
|
@amarandon The following cannot work $ mix phx.new hello |
@webdeb Of course, good catch! All tests passing now :) I got this from section "Generating More Files" of https://hexdocs.pm/phoenix/testing.html#content |
@amarandon Sure, why not. this is the repo https://github.com/phoenixframework/phoenix_guides |
@webdeb OK, I noticed more problems in the guide so I added issue phoenixframework/phoenix_guides#721 and intend to work on it. Thanks for your help! |
@webdeb why does this not work? |
|
@roberthopman Because |
Environment
Expected behavior
Expecting to see lib/xx/web folder. Expecting to find controller Xx.Web.MoviesController in lib/xx/web/controllers.
Expecting to see
defmodule Xx.Web.MovieController do
in lib/xx/web/controllers/movie_controller.exActual behavior
Seeing both lib/xx and lib/xx_web folder. Being incorrectly instructed to:
Folder xx_web doesn't contain router.ex, it's in xx folder.
Seeing
defmodule XxWeb.MovieController do
in lib/xx_web/controllers/movie_controller.exThe text was updated successfully, but these errors were encountered: