Add true wildcard for "rest of the path" in mappings
-
dan (at zeraweb)
- Assigned user changed from dan (at zeraweb) to Matthew King
Implemented, but needs test. Works correctly in Pages.
The first case adds true element to params hash with the rest of the path as an array. The second adds it using the given key.
Given ...
map :foo, :get => [ :foo, :bar => true ]This will match '/a/b/c/d' and place [ 'b', 'c', 'd' ] in params['bar'].
-
Matthew King
- State changed from new to open
-
dan (at zeraweb)
Do we have a test for this yet? Seems to be working ...
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.