Rails 2.3 and Grand Rapids WiFi

I like to always have at least one project on the go that works as a testbed for a variety of new Rails techniques, tools and releases. For a long time that project was Grand Rapids WiFi, a site that lapsed into some neglect after I moved (a long way) away from the town it focussed on, but which I still officially maintain. It was where I first tried Rails 1.1 and 1.2, where I got to grips with various geo tools, and where I first generated RDF and Atom from a Rails app. ...

Auto Center and Zoom with YM4R

When I blogged last month about abstracting mapping with YM4R I commented: What I’ve not yet discovered (and may not be implemented) is a way to automatically center and zoom a map. It would be very nice to be able to add a batch of points to a map and have the plugin automatically work out their mid-point. Maybe I need to work on that a little… What I was missing was the center_zoom_on_bounds_init method. There are various ways to interact with it, but I’ve chosen: ...

Abstracting mapping with YM4R

When Grand Rapids WiFi–then a PHP application–first implemented google map support all the logic for producing those maps came in the templates. The controller passed the view a list of locations for that page, and it wrote out a series of javascript calls that produced the map. It was a little unreliable and very clunky, but it worked. When I moved the app over to rails, that was one aspect that I didn’t change, and it continued to work. ...

Grand Rapids WiFi on Rails

Grand Rapids WiFi relaunched today with a change under the hood to Ruby Rails. The site has been through several iterations since I took it over in September 2004. It often functions as my testbed for new features I’d like to trial, and since most of my custom development is now rails-based, it made sense to make the switch. Feature-wise, not much has changed. A few URLs have changed slightly (with appropriate redirects provided by rails and lighttpd), there’s some caching in place, and there are a few new “ajax” effects, but otherwise it’s so far a straight port. And on the UI side the changes are also minimal. The use of microformats has increased somewhat, but the long promised redesign will have to wait a little longer. ...