# File lib/action_dispatch/routing/mapper.rb, line 1273 def using_match_shorthand?(path, options) path && (options[:to] || options[:action]).nil? && path =~ %r{/[\w/]+$} end