This project is archived and is in readonly mode.
Altered Rails Route Globbing breaks when non-strings passed
-
Pratik
Do you have a failing test case ?
Thanks.
-
Pratik
And also, it'd be nicer if you create the .diff using git-format-patch, so that you get the credit when patch is committed :)
-
Pratik
- State changed from new to incomplete
-
Sven Fuchs
Sure :)
Attached patch includes a failing test case as well as the fix and is done with git-format-patch.
-
Rick
- State changed from incomplete to open
-
Pratik
Committing using .to_param instead of .to_s and minor modification to the test.
Thanks.
-
Repository
(from [345f030c5b6c0a28ddde56c80a1112b00d345c79]) Ensure routing generator works with non-string keys. [#172 state:resolved]
Make sure that (with recent correction to globbed parameter escaping) non-string
values can still be passed route generation helpers for globbed route segments.
For example, foo_path([1, 2, 3]) should still work for a route like map.foo "*globbed"
by implicitely calling to_s on the Fixnums.
Signed-off-by: Pratik Naik
-
Pratik
- State changed from open to resolved
