A port of bikewise.org to Rails