I think this fellow did what you want to do:
http://coryforsyth.com/2013/06/02/programmatically-list-routespaths-from-inside-your-rails-app/
If that's not quite right I'd still suggest doing what he did - look at the Rails source for the :routes
rails task and work backward.