Methods
N
Included Modules
Classes and Modules
Class Public methods
normalize_name(name)
     # File actionpack/lib/action_dispatch/routing/mapper.rb, line 245
245:       def self.normalize_name(name)
246:         normalize_path(name)[1..-1].gsub("/", "_")
247:       end
normalize_path(path)

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 actionpack/lib/action_dispatch/routing/mapper.rb, line 239
239:       def self.normalize_path(path)
240:         path = Journey::Router::Utils.normalize_path(path)
241:         path.gsub!(%r{/(\(+)/?}, '\1/') unless path =~ %r{^/\(+[^/]+\)$}
242:         path
243:       end