zipmark/rspec_api_documentation — pull request #25 by crimsonknave (2012-04-18 15:00:51+00:00)
Title: Display Rails style routes instead of the url passed

I'd love to see the route of an example show the rails style route (/orders/:order_id/suborder) instead of the url that was hit (/orders/1/suborder).

I've attached a hack that works for me, but I'm sure breaks for different versions of rails (I'm using 3.1). I wasn't able to find a canonical way to do this in rails so I hacked it together based on the rake routes task and route matching code.

Any thoughts?