I followed this Geocoder Railscast & I\'m playing around with it to see if I can add validation to the longitude & latitude coordinates returned by the Geocoder Gem inca
Why can't you :geocode the Location before validation? :address_changed? will return true even for new records if any of those fields have changed. Validate it and if it returns invalid lat/lng values then your :latitude presence validation will fail.
Just change that after_validation
to before_validation
.