#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 Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

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

Pages