Monthly Archives: April 2009

Google Maps events in Mobile Safari and PhoneGap for iPhone

Having trouble getting your Google Maps div to respond to events like you want in Mobile Safari or a PhoneGap app for iPhone? So was I. Disabling pinch-zoom is simple enough, but getting a finger drag to (a) not move … Continue reading

Share
Posted in Google Maps, hacks, HTML, iPhone, Javascript, Programming | Tagged , , , , | 4 Comments

Rails Gotcha: ActiveRecord Caches Associated Records by Default

ActiveRecord will cache the results of association method calls by default, unless you tell it not to. (This applies to Rails 2.3.2 and perhaps earlier versions.) From the documentation: project.milestones # fetches milestones from the database project.milestones.size # uses the … Continue reading

Share
Posted in Rails | Tagged , , , , | 2 Comments