spicerunner
spicerunner

Reputation: 1

rails-geocoder environmental problem in Rails 3 app

I'm working with Alex Reisner's geocoder gem on a Rails 3 app (3.0.3) because I'm concerned about GeoKit's shakey Rails 3 compatibility. Alex's gem looked perfect for my application so I started using it and had it working flawlessly last night on my Macbook. I pushed the app to Github when I got it running.

Today, I did a git clone of the app on a desktop Mac. Same version of Ruby, Rails and identical source and Gemfile. This time geocoder is throwing this exception:

NameError (uninitialized constant Geocoder::Net):
  app/controllers/restaurants_controller.rb:16:in `create'

My models use after_validation :fetch_coordinates to geocode the model upon save.

Has anyone noticed any other dependencies outside the bundle that could cause this? I like the way Alex put this one together but may give geokit-rails3 a try even though it's an unfinished port.

Upvotes: 0

Views: 776

Answers (1)

Alex Reisner
Alex Reisner

Reputation: 29457

I just released gem version 0.9.7 which should solve this problem.

Upvotes: 1

Related Questions