instance method
has_named_route?
Ruby on Rails 4.0.13
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 544
def has_named_route?(name)
@set.named_routes.routes[name.to_sym]
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 544
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Base