Ever tried to migrate a legacy rails app that featured the dreaded catch-all route?
map.connect ':controller/:action' # ouch!
Well with this gem it can be transformed to this:
map.connect ':controller/:action', :deprecated => true
obtaining nice deprecation messages (of course you can use
:deprecated => true on any route you want)!
protip: setup exception notifier to send you a mail each time a deprecation is raised in production)
Add this line to your application's Gemfile (if you don't use bundler on rails 2 setup it now):
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request