method

normalize_path!

Importance_0
v4.1.8 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::Mapper::Mapping
normalize_path!() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.