# File lib/journey/route.rb, line 69 def format path_options (defaults.keys - required_parts).each do |key| path_options.delete key if defaults[key].to_s == path_options[key].to_s end formatter = Visitors::Formatter.new(path_options) formatted_path = formatter.accept(path.spec) formatted_path.gsub(/\/\x00/, '') end