Search code examples
ruby-on-railsruby-on-rails-3gmaps4rails

Address not found preventing model save | gmaps4rails


I was trying to save a new object to my DB and realized that gmaps4rails was preventing the save because the address was not being found by the geocoder:

In my log:

The address you passed seems invalid, status was: ZERO_RESULTS.

Is there a way to save the object without setting lat/lng when this happens?


Solution

  • Answer is in the wiki:

     acts_as_gmappable validation: false