This project is archived and is in readonly mode.
Routing: 2.3 provides no way to require a :format
-
CancelProfileIsBroken
Related: #2151 routing not recognizing requirements for :format which covers the :requirements case.
-
Michael Koziarski
- Milestone changed from 2.x to 2.3.4
-
CancelProfileIsBroken
- Tag changed from format, formats, respond_to, route, router, routes, routing to bugmash, format, formats, respond_to, route, router, routes, routing
-
Adam Bair
Verified. I tried this in 2.2.2 and 2.3.2 and experienced the same behavior as Jason.
-
Adam Bair
I've attached a patch that includes a test case that exposes this bug in 2.3.2.
-
CLR
I was Adam's paired partner for this. Just sayin.
-
Rizwan Reza
verified
+1 This bug exists. The test case fails.
-
Adam Bair
I meant to put a +1 with my verified comment earlier ;)
-
josh
- State changed from new to duplicate
If we can fix :requirements on :format, we can have hacky support for required formats in 2.3. That permanent optionalize was a big changed and caused some annoying side effects. In 3.0, we will have real syntax to optionalize segments.
Please follow up on #2151 routing not recognizing requirements for :format
-
Jeremy Kemper
- Tag changed from bugmash, format, formats, respond_to, route, router, routes, routing to format, formats, respond_to, route, router, routes, routing
