I used rake routes
to print out all of the routes in my application.
What I found is that a couple of routes map to the same controller/action combination.
So in my action I would like to display which route was actually used to track down where everthing is coming from.
I tried just rendering params.inspect
as text:
render :text => params.inspect
But I don't get the route information in the hash.
Is there some other command to reveal the currently used route from within the action?