I just commited a new version of the Cartographer library that lets you put nifty Google Maps into your Rails apps in a jiffy. It's available as a plugin, so if you are using Rails 0.14.3 or newer, a simple
script/plugin install -x svn://dotsx.usc.edu/cartographer/branches/pnh/vendor/plugins/cartographer will get you started. You will also need to:
<%= gmaps_header %>to the pertinent layout(s)
@map = Map.new(: name => 'mymap', : width => 300, : center => [-110, 33])
<%= @map.to_html %>
@map.markers << Marker.new(: position => [lng, lat],
: info_window => 'You <i>clicked</i> my marker')
Under older Rails versions you can just
svn co svn://dotsx.usc.edu/cartographer/branches/pnh/vendor/plugins/cartographer to get it. I hope to have the RubyForge page updated soon.
Oh yeah, and my server is running Rails + Lighttpd + Postgres now instead of crappy homebrew Lisp HTTP server and Apache2. It's amazing: Typo doesn't crash any more—not even on live search! Though Lighttpd absolutely hates my Trac installation; I may have to move to Trac's HEAD so FastCGI works.
Also started reading Stephen Levy's Hackers. It seriously reads like L' Morte d' Arthur. Good stuff.