I have the following code to get google.com
class Geocoder
def self.locate()
uri="http://www.google.com/"
puts Net::HTTP.get(uri)
end
but i faced with the erorr:
undefined method `hostname' for "'http://www.google.com/":String (NoMethodError)
I have already seen this, and my ruby version is: ruby 2.2.1