Pat,

On the right track - commenting out the geo search option restores the
search functionality:

    if origin = options.delete(:origin)
      lat = (origin[0] / 180.0) * Math::PI
      lng = (origin[1] / 180.0) * Math::PI
      distance = distance.to_i * 1609.344
      # @search_options.merge!(:geo => [lat, lng], :with =>
{ "@geodist" => 0.0..distance })
    end


On Jul 30, 10:46 am, Andrew Lippert <[email protected]> wrote:
> list.send(:latitude_attr) does produce 'lat' in development as well.
>
> On Jul 30, 10:42 am, Andrew Lippert <[email protected]> wrote:
>
>
>
> > Bingo - I'm now able to reproduce the problem on development. Dumb,
> > dumb, dumb. But a good step forward. I get the same error as on
> > production now.
>
> > On Jul 30, 10:30 am, Pat Allan <[email protected]> wrote:
>
> > > Okay... looks like you're using an old (pre 1.2) version of Thinking  
> > > Sphinx on your development machine. Which is frustrating. I'd much  
> > > rather it be the other way around. Can you update dev, see if you get  
> > > the error locally?
>
> > > --
> > > Pat
>
> > > On 30/07/2009, at 6:28 PM, Andrew Lippert wrote:
>
> > > > In production, it actually returns a result:
>
> > > > lat
>
> > > > A
>
> > > > On Jul 30, 10:16 am, Pat Allan <[email protected]> wrote:
> > > >> Can you get the value of list.send(:latitude_attr)?
>
> > > >> --  
> > > >> Pat
>
> > > >> On 30/07/2009, at 6:09 PM, Andrew Lippert wrote:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to