On Jun 24, 2009, at 02:16 , Jan Martin wrote:

> Eric Hodel wrote:
>> You haven't loaded the geometry extension like you did in the python
>> script.
>
> I am a beginner, so I do not know how to load extensions in ruby.
> Also I do not know where to get the extension from, and how to install
> it.

Eric was referring to your python code:

>  DB.execute('SELECT load_extension("libspatialite.so")');

that's a plain DB execute with a select statement to load spatialite.  
You should be doing almost the same thing on the ruby side. The rest  
of the code will prolly Just Work (or at least be much closer) after  
that.