You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
acts_as_gmappable :lat => 'lat', :lng => 'lng', :process_geocoding => :geocode?,
:address => "address", :normalized_address => "address",
:msg => "Sorry, not even Google could figure out where that is"
def geocode?
(!address.blank? && (lat.blank? || lng.blank?)) || address_changed?
end
The columns in his db are, lat, lng, address, gmaps.
He uses directly his db column to pass the address to the gem and overwrite the address provided with the one normalized by Google.