This project is archived and is in readonly mode.
controller generator w/ module/namespace generates incorrect routes
-
Andrew White
- State changed from new to wontfix
- Importance changed from to Low
Since the generated routes are pretty much always going to be rewritten and it isn't necessarily the case that a namespaced controller is namespaced within the url I don't think that it's worth the development effort to get this to work. I do appreciate that we are generating tests that are broken out of the box but the generated code is a starting point and not the finished article.
Additionally with namespaced engines coming in Rails 3.1 there'll be even more instances where a namespaced controller does not namespace its urls - in fact there's even a test to ensure that it doesn't.