This project is archived and is in readonly mode.
Add option to clear routes when calling draw.
-
Jeremy Kemper
- Milestone cleared.
- State changed from new to open
- Assigned user set to Jeremy Kemper
-
Jeremy Kemper
When looking at the code, passing a boolean doesn't reveal the intention of the API.
How about using a separate method call instead of draw, such as add?
-
Pratik
- Milestone set to 2.x
-
Pratik
- State changed from open to incomplete
- Assigned user changed from Jeremy Kemper to Michael Koziarski
-
Neeraj Singh
- Assigned user changed from Michael Koziarski to Andrew White
- Importance changed from to
This is an old ticket. A lot has changed in routing since then. Assigning it to Andrew to get his perspective on this.
-
Andrew White
- State changed from incomplete to invalid
There are much nicer ways for engines/plugins to add routes now - config/routes.rb being the easiest but also look at how Devise mixes a module into the new mapper for more flexibility of where routes appear, conciseness and extra functionality like authenticating routes.
