Associations and to_json on collections of objects

ActiveRecord’s Serialization module does provide to_json method. It allows include associations when dumping to JSON, but it works only for single objects. If You want to run it against collection, returned by find :all You will get: >> Model.all.to_json :include =>:association TypeError: wrong argument type Hash (expected Data) from (irb):13:in `to_json’ from (irb):13 If You […]

GMarkerManager and setImage – why it fails?

I wrote simple howto about changing icons in markers when markers is already placed on map. And I was asked question about setImage and GMarkerManger. Problem is that when changing image with setImage old image will be displayed when user zooms map in or out – when GMarkerManager is used to place markers on map. […]

TLabel – simple, smaller labels on Google Maps

If You use Google Maps API, probably You want to use smaller windows/labels on map than default infoWindow, which happens to be huge and bloated. When I started Run-N-Share almost two years ago, I stumbled upon TLabel, minimalistic library for creating labels on Google Maps. It is abandoned project, but it still works with current […]