lib/app/models/cli.rb
def list_of_locations(location)
    puts "Here are all of the locations you have visited!"
    location.each_with_index {|location, index| 
    puts "\n#{index+1}. #{location.city_name}, #{location.state_or_country}"
    }
end
#helper method for find all states or countries
helper method for find all states or countries
helper method for find all states or countries
def list_of_locations(location)
    puts "Here are all of the locations you have visited!"
    location.each_with_index {|location, index| 
    puts "\n#{index+1}. #{location.city_name}, #{location.state_or_country}"
    }
end
def list_of_locations ( location ) puts "Here are all of the locations you have visited!" location . each_with_index { | location , index | puts "\n#{index+1}. #{location.city_name}, #{location.state_or_country}" } end
helper method for find all states or countries
helper method for find all states or countries
location