method

normalize_path!

normalize_path!()
private

No documentation available.

# File actionpack/lib/action_dispatch/routing/mapper.rb, line 78
          def normalize_path!
            raise ArgumentError, "path is required" if @path.blank?
            @path = Mapper.normalize_path(@path)

            if required_format?
              @path = "#{@path}.:format"
            elsif optional_format?
              @path = "#{@path}(.:format)"
            end
          end