blog

Lone Star Ruby Conference 2010

DejaVu! You usually say that when you attend the same conference twice 😉 - At Lone Star, its always an new experience. Last year I was an attendee, this year I presented a talk and I thoroughly enjoyed myself. There were an awesome selection of talks and more importantly, the sequence of talks was thought … Continue reading Lone Star Ruby Conference 2010

Zipcode validation using geokit in rails

1.Install geokit gemgem install geokitOR # Add following line inside rails initialize blockRails::Initializer.run do |config| config.gem 'geokit'endAnd then run commandrake gems:install2. Consider User model with zipcode as attribute fieldinclude Geokit::Geocoders class User :zipcode private def request_zipcode_validation_using_geokit # Method request google api for location # if location found then zipcode is valid otherwise # add validation … Continue reading Zipcode validation using geokit in rails