instance method
using_match_shorthand?
Ruby on Rails 3.2.22.5
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 1280
def using_match_shorthand?(path, options)
path && (options[:to] || options[:action]).nil? && path =~ %r{/[\w/]+$}
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1280
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources