Author Archive for Andre
to_json and Rails 2
0 Comments Published by Andre February 13th, 2008 in Fixes, JavaScript, Ruby on Rails, The BookRails 2 changed the way to_json works on ActiveRecord objects. Prior to Rails 2, to_json returned a hash of hashes — the first level hash had the key ‘attributes’, which in turn had another hash with your field name/values.
With Rails 2, calling to_json on an AR object just gives you a hash of field name/values. […]
DragZoom taken into Google Maps Util Lib
2 Comments Published by Andre June 21st, 2007 in JavaScriptDragZoom (previously called GZoom) is my drag-to-zoom custom Google Map control I open-sourced last year. I’m happy to say the code has been incorporated into Google’s own GMaps Utility Library. Thanks to Pamela Fox from Google for doing a lot of work to bring it in. You can now source DragZoom directly off of Google’s […]
The Ruby on Rails code is ready to downloaded. Here’s how to get it up and running in your environment:
Download the zip file, gmaps_rails_code.zip
Create your own empty Rails application (rails your_app_name)
Unzip gmaps_rails_code.zip in the root of your newly created application. When you unzip the file, you will see it contains five root directories: app, db, […]
To those of you who have emailed us about the source code for the Rails edition — thanks for your patience, it’s coming soon! I decided to present it as a one compressed file you can unpack over an existing Rails application skeleton. Stay tuned, the code is coming later today or tomorrow at the […]
Search
About
Archive for Andre.
Longer entries are truncated. Click the headline of an entry to read it in its entirety.Archives
Categories
- Ajax (1)
- Cartography (1)
- Code (1)
- Data (2)
- Fixes (3)
- Geocoding (5)
- Geometry (2)
- JavaScript (7)
- KML (3)
- Overlays (6)
- PHP (6)
- Projections (1)
- Regex (1)
- Ruby on Rails (4)
- SQL (2)
- The Book (29)
- Uncategorized (3)
- Usability (1)
- User Experience (2)
- XML (2)


Subscribe