Displaying 1 result from an estimated 1 matches for "end_no_zips".
2006 Jul 18
1
Need Help Updating Records
....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"] == ('''' || nil))
r.zipcode = result[0]["zip"]
end
end
end_no_zips = Source.find(:all, :conditions => ["zipcode = ?", (nil
|| '''') ])
@ending_no_zips = end_no_zips.length
end
--
Posted via http://www.ruby-forum.com/.