-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Can't create routes named index
, show
#149
Comments
Yes, |
My previous report was wrong so I rewrote it |
Thanks! I can reproduce this one. Are you blocked by this one @012e? I may bundle this one together with reworking the controller generator to be middleware. |
Not really, I don't need this |
Disregard. I was able to reproduce it. |
It is trying to create this during file generation (at the top of // Controller struct
type Controller struct {
Index *IndexAction
Show *ShowAction
Index *IndexController
} I'm looking at the // Controller struct
type Controller struct {
IndexAction *IndexAction
ShowAction *ShowAction
IndexController *IndexController
} Edit: I have it working this way now on a branch I'm toying with: // Controller struct
type Controller struct {
Indexaction *IndexAction
Showaction *ShowAction
Index *IndexController
} This also works at deeper levels of nesting, where the problem was occurring as well. |
Reproduce
bud create project
bud new controller anything:/ index show
bud new controller index
orbud new controller show
(with or without views)bud run
will give an error:The text was updated successfully, but these errors were encountered: