Hi Zach
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, Zach wrote:
>
> 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
-~----------~----~----~----~------~----~------~--~---