method
route_uri_pattern
v7.1.3.4 -
Show 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)"