Parent

Included Modules

Class Index [+]

Quicksearch

ActionDispatch::Routing::Mapper

Public Class Methods

normalize_name(name) click to toggle source
     # File lib/action_dispatch/routing/mapper.rb, line 220
220:       def self.normalize_name(name)
221:         normalize_path(name)[1..1].gsub("/", "_")
222:       end
normalize_path(path) click to toggle source

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 214
214:       def self.normalize_path(path)
215:         path = Rack::Mount::Utils.normalize_path(path)
216:         path.gsub!(%{/(\(+)/?}, '\1/') unless path =~ %{^/\(+[^/]+\)$}
217:         path
218:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.