title: uninitialized constant Ruby
body: <p>I'm working on a ruby app that pinpoints your location given your ip address. I have run into a road block though. I've already searched on this site, but the solutions I've already found are too general.</p>
  
  <p>Here's the error:</p>
  
  <pre><code>uninitialized constant Place::IpGeocoder (NameError)
  </code></pre>
  
  <p>And the code I'm developing:</p>
  
  <pre><code>require 'socket'
  require 'geocoder'
  require 'geokit'
  
  
  class Place
  
    def get_location
  
    ip = UDPSocket.open {|s| s.connect("64.233.187.99", 1); s.addr.last}
    location = IpGeocoder.geocode(ip.to_s())
    end
  
  end
  
  me=Place.new
  me.get_location
  </code></pre>
  
  <p>I already installed the gems. Do I need to create a instance of it or something like in java?</p>