NoMethodError: undefined method `bytesize' for :latitude:Symbol
        from /Users/zachinglis/sites/rails/clickscape/vendor/plugins/thinking-
sphinx/lib/riddle/client/message.rb:20:in `send'
        from /Users/zachinglis/sites/rails/clickscape/vendor/plugins/thinking-
sphinx/lib/riddle/client/message.rb:20:in `append_string'
        from /Users/zachinglis/sites/rails/clickscape/vendor/plugins/thinking-
sphinx/lib/riddle/client.rb:548:in `query_message'
        from /Users/zachinglis/sites/rails/clickscape/vendor/plugins/thinking-
sphinx/lib/riddle/client.rb:306:in `query'
        from /Users/zachinglis/sites/rails/clickscape/vendor/plugins/thinking-
sphinx/lib/thinking_sphinx/search.rb:249:in `search_results'
        from /Users/zachinglis/sites/rails/clickscape/vendor/plugins/thinking-
sphinx/lib/thinking_sphinx/search.rb:180:in `search'
        from /Users/zachinglis/sites/rails/clickscape/vendor/plugins/thinking-
sphinx/lib/thinking_sphinx/active_record/search.rb:29:in `search'

It wasn't updating properly when I tried to update the plugin.
However, now I've managed to, it is all working again.

On Apr 14, 2:57 am, Pat Allan <[email protected]> wrote:
> HiZach
>
> Do you have a stack trace for that error? Looks like I'm not  
> converting a symbol to a string somewhere.
>
> Cheers
>
> --
> Pat
>
> On 14/04/2009, at 11:55 AM,Zachwrote:
>
>
>
>
>
> > Model:
> >    has 'RADIANS(latitude)',  :as => :latitude,   :type => :float
> >    has 'RADIANS(longitude)', :as => :longitude,  :type => :float
> > end
>
> > …
>
> > # A mixin for Geospacial Sphinx Searching.
> > class Float
> >  def to_radian
> >    ( self / 360.0 ) * Math::PI * 2
> >  end
> > end
>
> > …
>
> > Console:
> >>> Listing.search('', :geo => [-84.0000,  
> >>> 34.0000]).collect(&:formatted_address)
> > NoMethodError: undefined method `bytesize' for :latitude:Symbol
>
> > I saw another thread with this mentioned but no resolution for it.
>
> > Thank you for any help.
> >Zach
--~--~---------~--~----~------------~-------~--~----~
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