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

Add multi-segment matching to router #50

Open
jgaskins opened this issue Jun 20, 2016 · 0 comments
Open

Add multi-segment matching to router #50

jgaskins opened this issue Jun 20, 2016 · 0 comments

Comments

@jgaskins
Copy link
Member

Right now, the router cannot match on a path segment that contains a /. For example, neither of these routes can currently be matched:

  route 'foo/bar' => FooBar.new
  route 'foo/:foo_id' => FooDetail.new

If we, instead of splitting the URL path on /, match whatever comes at the beginning of it (removing the matched part to pass to subordinate routes), we would be able to handle these cases.

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

No branches or pull requests

1 participant