Please use mongoid_spatial by Ryan Ong instead.
I have had no time to finish this gem unfortunately, but he has done a
good job on continuing my efforts in his gem which should be
working ;)
If you wanna help get this gem working as well, look at his code and
patch this gem where necessary. Mostly in geo_context.rb and such.
(run the specs)
Kristian
On Aug 3, 1:17 pm, Cyprian Kowalczyk <
cyprian...@gmail.com> wrote:
> This is the "old" manual way, isn't it?
> I would like to use the "new :geo option that can be used with any Array field".
>
> On 3 sie 2011, at 13:14, Leo Qiu wrote:
>
>
>
>
>
>
>
> > def loc_str_to_array args
> > args.kind_of?(String) ? args.split(",").map(&:to_f) : args
> > end
>