This project is archived and is in readonly mode.
Route generation error with :defaults and :via options
-
Andrew White
- Milestone cleared.
- State changed from new to open
- Assigned user set to josh
- Importance changed from to Low
This is another subtle Rack::Mount bug to do with key analysis. The reason it doesn't work in test or production is that the built-in info route isn't included and this is enough to trigger the bug. If you add some additional routes inside the test it passes.
It looks as though :format is getting added to the generation_keys array because the :request_method condition is including it in required_defaults. Once you have other routes the :format key drops out of generation_keys due to the increased frequency of the :controller and :action keys.
