-
-
Notifications
You must be signed in to change notification settings - Fork 579
[Bug] buffalo grenerate resource wrong template path #1769
Comments
The problem seems to be in In the example from @badstorm |
After a little more research, it seems like the error is in |
It doesn't resolve this issue specifically, but it seems the correct nomenclature to use with the command is using snake case with singular in resource name. In your case use the generator command : buffalo generate resource name_othername and everything should work 'as intended' |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
The root cause of this issue was just addressed in gobuffalo/flect#60 applying it to the stack is on the work. (duplicated issue: gobuffalo/flect#12) |
Now it works find. closeing. |
Description
If I create a new resource with this nomencalture NameOthername, the generation command create in the template folder a direcotry "name" with inside a subdirectory "othername" and inside all the html files.
But If I try to connect to one of the action of this resource, buffalo try to find the template in other path "name_othername/file.html"
Steps to Reproduce the Problem
Crate a resource withj two uppercase letters:
Expected Behavior
Access to the resource paths
Actual Behavior
Actualy you get an error in anyone of the resources paths:
name_othername/index.html: could not find template name_othername/index.html
Info
The text was updated successfully, but these errors were encountered: