-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Incorrect url comment notes in generated scaffold controller in a namespace. #44662
Comments
@qichunren according to the USAGE file, you're meant to use
This generates the correct comments when I test locally. |
@pixeltrix I test locally with your way,
It still generates incorrect comments as the issue reported. Did I miss something? |
The `route_url` method now returns the correct path when generating a namespaced controller with a top-level model using `--model-name`. Fixes rails#44662.
No, I missed adding the I made a PR to fix this: #44670 |
Steps to reproduce
Expected behavior
Every generated url comment note should contain namespace prefix like:
# GET /admin/posts or /admin/posts.json
Actual behavior
Every generated url comment note missing namespace prefix like:
# GET /posts or /posts.json
System configuration
Rails version: v7.0.2.2
Ruby version: v3.1.0
The text was updated successfully, but these errors were encountered: