instance method
route_uri_pattern
Ruby on Rails 7.1.6
Since v7.1.6Signature
route_uri_pattern()
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)"
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 152
def route_uri_pattern
get_header("action_dispatch.route_uri_pattern")
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 152
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request