This project is archived and is in readonly mode.
path helper problem
-
2kan
I don't think that it is a bug. I think there is a reason why you can't use dots.
If you are interested here is a regexp for such route:
/\A\/issues\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/Here are segments (for better understanding) for this route:
segments: ["/issues/", /(?<id>\A[^/.?]+\Z)/, [".", /(?<format>\A[^/.?]+\Z)/]]I think you can't use dots because of format segment but i'm not sure, any ideas why dot is not allowed?
-
2kan
Yes, of course '.' is not allowed because it is separator for format.
-
Alexey Poimtsev
ok, but sometimes we need to send '.' in path, what about encode/escape dot symbol?
-
Neeraj Singh
- Importance changed from to Low
In routes mention :format => false and then use your regex and then dot will be allowed.
-
Todor Dragnev
Similar to #6134 ?
-
Alexey Poimtsev
yep, looks similar
-
Andrew White
- State changed from new to invalid
And #5994 where I've listed some more tickets that have reported the same problem.