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