This repository has been archived by the owner on Feb 24, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 582
Resource generator doesn't support "nested" values #364
Labels
Milestone
Comments
I'm revisiting this. I've closed the ticket for #394 which directly impacted this ticket. I've had a change of heart as to how this ticket should be implemented. Here is my take on how this should work now: $ buffalo g resource admin/plane
--> actions/admin_planes.go
--> actions/admin_planes_test.go
--> locales/admin/planes.en-us.yaml
--> templates/admin/planes/_form.html
--> templates/admin/planes/edit.html
--> templates/admin/planes/index.html
--> templates/admin/planes/new.html
--> templates/admin/planes/show.html
--> buffalo db g model plane name
v3.13.7
--> models/plane.go
--> models/plane_test.go
--> goimports -w . $ buffalo g resource admin/plane --model-name=AdminPlane
--> actions/admin_planes.go
--> actions/admin_planes_test.go
--> locales/admin/planes.en-us.yaml
--> templates/admin/planes/_form.html
--> templates/admin/planes/edit.html
--> templates/admin/planes/index.html
--> templates/admin/planes/new.html
--> templates/admin/planes/show.html
--> buffalo db g model admin_plane name
v3.13.7
--> models/admin_plane.go
--> models/admin_plane_test.go
--> goimports -w . |
@apaganobeleno think you crank this out in the next two weeks given the new requirements? |
@markbates yes, i'll work on this over next 2 weeks |
awesome! :) |
@markbates i'm assuming for the router path should be |
That would be correct. :) |
@markbates aha! this one is tricky! that --model-name flag was not there :D, going for it |
Closed by #469 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: