search for: starting_no_zips

Displaying 1 result from an estimated 1 matches for "starting_no_zips".

2006 Jul 18
1
Need Help Updating Records
...e value in the array is changed. How do I get this to update the actual DB record instead? def add_missing_zips #find all records in source table that don''t have zip codes no_zips = Source.find(:all, :conditions => [ "zipcode = ?", (nil || '''') ]) @starting_no_zips = no_zips.length server = XMLRPC::Client.new2("http://geocoder.us/service/xmlrpc") no_zips.each do |r| result = server.call("geocode", r.full_address) #update the record in the Source table if a zip code is found unless (result.empty? || result[0]["zip&...