Geonatra is a project mainly written in JAVASCRIPT and RUBY, it's free.
Tiny Sinatra-Based Geolocation
Geonatra
A tiny experiment in geolocation and passing variables between JS and Ruby.