Try Here Instead
Try finding the answer to something simple like, “how can I know what routes are defined at runtime, given that plugins etc can add routes?” and you’ll find yourself going down an endless google rabbit hole.
What’s desperately needs is a set of cookbook recipes for routes, like
- How to display the route map using the Rails console
- How to make plugins that do obscure things with routes (like UJS) work under a mongrel server running with a prefix set
- Why, if named routes are so valuable, so few of the Rails examples and in-the-wild Rails apps that we can get source code to seem to use them.
Try Here Instead
Try finding the answer to something simple like, “how can I know what routes are defined at runtime, given that plugins etc can add routes?” and you’ll find yourself going down an endless google rabbit hole.
What’s desperately needs is a set of cookbook recipes for routes, like
- How to display the route map using the Rails console
- How to make plugins that do obscure things with routes (like UJS) work under a mongrel server running with a prefix set
- Why, if named routes are so valuable, so few of the Rails examples and in-the-wild Rails apps that we can get source code to seem to use them.