Object
# File lib/action_dispatch/routing/mapper.rb, line 233 233: def self.normalize_name(name) 234: normalize_path(name)[1..1].gsub("/", "_") 235: end
Invokes Rack::Mount::Utils.normalize path and ensure that (:locale) becomes (/:locale) instead of /(:locale). Except for root cases, where the latter is the correct one.
# File lib/action_dispatch/routing/mapper.rb, line 227 227: def self.normalize_path(path) 228: path = Rack::Mount::Utils.normalize_path(path) 229: path.gsub!(%{/(\(+)/?}, '\1/') unless path =~ %{^/\(+[^/]+\)$} 230: path 231: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.