Hey Amit, Not sure if you made it out, but I will tell you what I did just in case.
I searched for the source of andre geokit-rails, and then cloned it locally and added this meaning code in line 34 of lib/geokit-rails/acts-as-mappable.rb , right after the line that reads module ClassMethods # :nodoc:
Then I made these changes back to my forked repo on github and used my plug-in to install the source as a plugin in my rails 3 app. It seemed to work right away, but make sure the acts_as_mappable line acts_as_mappable added to any model on which you want to do distance calculations, and make sure you have two float columns on this db named :lat and :lng .
source share