method
route_uri_pattern
rails latest stable - Class:
ActionDispatch::Request
route_uri_pattern()public
Returns the URI pattern of the matched route for the request, using the same format as `bin/rails routes`:
request.route_uri_pattern # => "/:controller(/:action(/:id))(.:format)"