instance method
using_match_shorthand?
Ruby on Rails 5.0.7.2
Since v3.2.22.5Signature
using_match_shorthand?(path)
No documentation comment.
Parameters
-
pathreq
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1615
def using_match_shorthand?(path)
path =~ %r{^/?[-\w]+/[-\w/]+$}
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1615
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources