I am building an app for renting rooms. I am using active admin and the geocoder gem. Now to my issue: I want to update the address of a room in the active admin panel which works perfectly but it will not update the longitude and latitude columns autoamtically for me... and I have no idea why? How can I make this work?
I have permited the params in (room.rb - activeadmin)
permit_params :longitude, :latitude
I am using also an after_validation in (room.rb - model)
geocoded_by :address
after_validation :geocode, if: :address_changed?