method
normalize_path!
normalize_path!()
private
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