Ruby Float to String error

Viewed 9444

Ruby newbie. What's wrong with this code?

city_details['longitude'] + "," + city_details['latitude']

I get this error:

./player_location.rb:6:in `+': String can't be coerced into Float (TypeError)
2 Answers
Related