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 233
233:       def self.normalize_name(name)
234:         normalize_path(name)[1..1].gsub("/", "_")
235:       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 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.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.