module RoutesHelper def line_formatted_name( line) return line.published_name if line.number.blank? "#{line.published_name} [#{line.number}]" end end