Flowdock
method

normalize_path!

Importance_0
v4.0.2 - 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 77
          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.