#68 open
dan (at zeraweb)

Add true wildcard for "rest of the path" in mappings

Reported by dan (at zeraweb) | July 20th, 2008 @ 11:11 PM | in 0.8.0 - Frozen Donkey Wheel

Sometimes you just want to match everything after a certain point. In that case, you just use "true":

map :foo, :get => [ :foo, true ] ...

In the case where you want to capture the path from that point, just do it like this:

map :foo, :get => [ :foo, :bar => true ] ...

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Resource-oriented Web apps.

People watching this ticket

Tags