-
-
Notifications
You must be signed in to change notification settings - Fork 91
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Routes with multiple variables not working in common nested route scenario #255
Comments
I'm experiencing the same issue with the following routes:
It seems only the first matching pattern is being considered. For example, if I reverse the routing order, only the first pattern will be considered, and the second will not be found:
|
I'm having the exact same issue and I believe it's down to |
Hello Hanami team 馃憢
First, thanks for the amazing project. It's a breeze to have projects like Hanami, dry-rb and ROM in the Ruby community 馃槃
That being said, I've been using Hanami 2 lately I've came across the following issue with hanami-router:
Note, however, that this work fine:
I would expect the response to be the same in both examples, regardless of the path variable name. Also worth noting, I think naming the last "id" in the route generically as
id
(as opposed to always specifically calling it with the name of the resource, e.g. "user_id" or "post_id") is a common pattern that is also adopted in Rails by default.Version used: 2.0.2
The text was updated successfully, but these errors were encountered: