In a directory named issue_1, mix phoenix.gen.model should generate model modules named Issue1.Modelname, similar to mix phoenix.new.
The generated modules are instead named like Issue_1.Modelname resulting in a compilation error of module Issue_1.Web is not loaded and could not be found.
Well, this looks like a real problem. I will open a pull request for it soon.
Sorry, do you have the whole command you are running on the generator?
Well, just looking a little bit for the code, this is already fixed on master. More specifically on this commit. So I guess we can close this, right @chrismccord?
I hope it helps, but I found this is also the case when using mix phoenix.routes.
@klintmane the commit above would also have fixed it for mix phoenix.routes. Thank you @kelvinst for checking and @klintmane for reporting.
Most helpful comment
@klintmane the commit above would also have fixed it for
mix phoenix.routes. Thank you @kelvinst for checking and @klintmane for reporting.