http://ngauthier.com/2013/08/postgis-and-rails-a-simple-approach.html