instance method
has_named_route?
Ruby on Rails 7.0.10
Since v4.0.13Signature
has_named_route?(name)
Query if the following named route was already defined.
Parameters
-
namereq
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 630
def has_named_route?(name)
@set.named_routes.key?(name)
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 630
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Base