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
Improvements to wild-carded segments in a path #660
Comments
As mentioned in #661 in Genie 6 (currently in the The matching part ends up in |
If you want to help with this for ex by extending it to match better (less greedy) and/or backport it to Genie 5, happy to help. |
Thanks, this is really good that you implemented this function. At the same time, RoR is still a good sample of how to organize dynamic components of the path. The cases BTW, have you thought about replacing of the |
@rssdev10 I have not thought about replacing the routes lookup and your suggestion is very interesting. I'll look into it, thanks. |
In some cases, it is convenient to have a mechanism for processing parts of a path. E.g. I want to have a hierarchical processing of the path ending
photos/*other
. This route would match photos/12 or /photos/long/path/to/12, settingother
-segment to "12" or "long/path/to/12".This way may be used for organizing access to a file storage with additional control functions.
See more examples: https://guides.rubyonrails.org/routing.html#route-globbing-and-wildcard-segments
The text was updated successfully, but these errors were encountered: