Skip to content
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

Guides: Mention rake routes task #43632

Merged
merged 1 commit into from Nov 16, 2021
Merged

Guides: Mention rake routes task #43632

merged 1 commit into from Nov 16, 2021

Conversation

dacook
Copy link
Contributor

@dacook dacook commented Nov 11, 2021

[skip ci]

Summary

The Routing guide doesn't mention the rake routes task, which is a very helpful tool in understanding route helper names. These can sometimes get quite long, especially including namespaces. So it would be really helpful for a developer to learn how to discover these.

I initially wanted to write a formula for guessing helper names (eg "it is a concatenation of action name, namespace(s), controller name"), but then realised this tip is more helpful as it is more direct.

Other Information

N/A

@rails-bot rails-bot bot added the docs label Nov 11, 2021
Copy link
Contributor

@ceritium ceritium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dacook, there is a section dedicated to listing existing routes. It already mentions bin/rails routes.

@dacook
Copy link
Contributor Author

dacook commented Nov 12, 2021 via email

This is a very helpful tool in understanding route helper names, which can sometimes get quite long, especially including namespaces. So it would be really helpful for a developer to learn how to discover these.

[skip ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants